System and method for automated conversion of interactive sites and applications to support mobile and other display environments

ABSTRACT

A converter for a website building system including a receiver to receive a website page from a website building system, the page having a source layout for a source display area and an object model representation of the website building system elements, a processor to determine an order and set of relationships among the elements and to create a target layout of the web site page for a target display area, the target layout being based on a semantic analysis and reconciliation of the determined order and set of relationships where the source display area has different attributes than the target display area and a reconverter to merge modifications to the source layout and the target layout taking into account independent modifications made to the target layout to create an updated target layout configuration and where the updated target layout reflects changes made to the source layout.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a Continuation Application of U.S. patent application Ser. No. 14/483,981 filed 11 Sep. 2014 which claims priority from U.S. Provisional Patent Application No. 61/876,795, filed 12 Sep. 2013, which is hereby incorporated in its entirety by reference.

FIELD OF THE INVENTION

The present invention relates to the conversion of interactive applications and to mobile platforms in particular.

BACKGROUND OF THE INVENTION

With the onset of the Internet, in recent years, users have been accessing web sites and interactive applications more and more using smart phones, tablets and other mobile devices. These devices have been gradually replacing—or complementing—both the full-features desktop personal computer as well as the older less capable “feature phones”. This applies to web sites residing on the world-wide-web, as well as to other interactive applications which can now be acquired from numerous application stores offered by major companies such as Apple, Google, Microsoft and Amazon.

Web sites and interactive applications have different display form factors and characteristics depending on where they are viewed such as on the desktop PC, the small-scale mobile device and the mid-size mobile tablet.

SUMMARY OF THE PRESENT INVENTION

There is provided, in accordance with a preferred embodiment of the present invention, converter for a website building system, the converter includes a receiver to receive a website page from a website building system, the page having a source layout for a source display area and an object model representation of the website building system elements; a processor to determine an order and set of relationships among the elements and to create a target layout of the website page for a target display area, the target layout being based on a semantic analysis and reconciliation of the determined order and set of relationships, where the source display area has different attributes than the target display area and a reconverter to merge modifications to the source layout and the target layout taking into account independent modifications made to the target layout to create an updated target layout configuration and where the updated target layout reflects changes made to the source layout.

Moreover, in accordance with a preferred embodiment of the present invention, the processor includes a preprocessor to analyze object properties of the elements and to modify their suitability for presentation on the target display area, a super-node creator to locate groups of the elements which should remain together and to create a hierarchy of super-nodes based on the location of the elements and the content relationships of the elements. It also includes an orderer to determine an order for the elements within each of the super-nodes, a placer to place the elements within the target layout based on at least one of the determined order, reserved spaces and the groups and a post processor to adjust the placed elements before display.

Further, in accordance with a preferred embodiment of the present invention, the elements are at least one of atomic components, single-page container components and multi-page container components.

Still further, in accordance with a preferred embodiment of the present invention, the converter is implementable on a least one of a client, a server and a third party server.

Additionally, in accordance with a preferred embodiment of the present invention, the pre-processor includes at least one of: a template handler to modify instances of the elements in templates, a component filterer to filter the elements not suitable for the target layout, a component adapter to adapt the elements to the target layout, a component adjuster to adjust the components to the target layout and a component analyzer to analyze the attributes of the elements to determine their usage suitability.

Moreover, in accordance with a preferred embodiment of the present invention, the super-node creator includes at least one of: an overlap group locator to locate groups of the elements where the elements are highly overlapping and to replace the group with a virtual element according to the grouping criteria, a predefined group locator to locate groups of the elements according to hints of at least one of template, application, page or elements level and to replace the group with a virtual element according to the grouping criteria. The super-node creator also includes a text over image group locator to locate elements where the components are text components that are overlaid over a specific background image to replace the group with a virtual element according to the grouping criteria, a scorer to determine a certainty score for the correctness of the overlap group locator, the predefined group locator and the text over image group locator and a node creator to create a hierarchy of super-nodes based on the elements and the virtual elements.

Further, in accordance with a preferred embodiment of the present invention, the orderer includes at least one of: a basic orderer to determine a sequence of the elements of the super-nodes according to a predefined order criteria, a partial order set locator to analyze at least one of the semantics, content, attributes, editing history and geometry of the elements of the super-nodes, a scorer to determine a certainty score for the correctness of the basic orderer and the partial order set locator and an order integrator to integrate the sequence determined by the basic orderer with detected partial order sets located by the partial order set locator to create a merged modified order.

Still further, in accordance with a preferred embodiment of the present invention, the post processor includes an automatically added component inserter to at least one of automatically added and mobile-related elements and a dynamic layout coordinator to perform at least one of creation, modification and removal of dynamic layout anchors where the anchors are adjusted according to the target layout.

Additionally, in accordance with a preferred embodiment of the present invention, the basic orderer includes at least one of: a primary direction orderer to sequence the elements of the super-nodes according to at least one of rows and columns, a primary direction with split and merge orderer to sequence the elements of the super-nodes according to at least one of rows and columns and to track any row/column splitting and merging and a horizontal/vertical slicer to alternate horizontal and vertical slicing of the elements of the super-nodes to create an internal tree of divisions and define a sequence of display for the elements.

Moreover, in accordance with a preferred embodiment of the present invention, the placer includes a hint interpreter to interpret hints attached to the elements of the super-nodes, a line break creator to create line breaks according to the hints created by the node creator and the orderer, a width reducer to reduce the width of the elements where the width reducer comprises at least one of a re-scaler, a font changer and a text re-flower and where the width reducer preserves visual design; a size adjuster to apply at least one of width and height adjustment to the elements of the super-nodes and a resizer to resize decoration images.

Further, in accordance with a preferred embodiment of the present invention, the partial order set locator includes at least one of: a cluster partial order set locator to detect a cluster partial order set when the elements of the super-nodes are closer in proximity compared to the regular spacing between the elements in the super-nodes, a semantic partial order locator set to detect a semantic relationship partial order set when there are specific combinations of the elements of the super-nodes of given types which are close together; a pattern partial order set locator to detect a partial order set when there are set patterns between the elements of the super-nodes, a pre-defined partial order set locator to detect a partial order set based on at least one of existing editing related grouping definitions, existing dynamic layout anchor information and the re-use of component templates for different component sets and an editing session information based partial order set locator to detect a partial order set of the elements of the super-nodes based on information collected from previous editing sessions.

Still further, in accordance with a preferred embodiment of the present invention, the at least one of automatically added and mobile-related elements include at least one of target device specific widgets, navigation menus, advertisements and promotional material.

Additionally, in accordance with a preferred embodiment of the present invention, the converter having a pattern partial order set locator and where the horizontal/vertical slicer includes an element divider to determine the slicing direction of the elements of the super-nodes based on at least one of number of dividers, size of gaps found in the given projection direction, the located pattern partial order set and quality of alignment to axis projections in both directions.

Moreover, in accordance with a preferred embodiment of the present invention, the component filterer includes a remover to remove elements not suitable for the target layout display and a hider to hide elements not suitable for the target layout display.

Further, in accordance with a preferred embodiment of the present invention, the component adapter includes a modifier to modify the size and width of the elements, a uniter to unite menu elements, a content updater to update content related adaptations, a creator to create composite menus and a character converter to convert character based graphics.

Still further, in accordance with a preferred embodiment of the present invention, the component adjuster includes a mapper to create font-size mapping between the source layout and the target layout.

Additionally, in accordance with a preferred embodiment of the present invention, the component analyzer includes an image stitcher to stitch the elements when the elements are image components into a single image and a decoration image handler to distinguish decoration images.

Moreover, in accordance with a preferred embodiment of the present invention, the reconverter includes a page deleter to delete a page from the target layout when the page is deleted from the source layout, a page adder to add a page to the target layout when the page is added to the source layout, a component deleter to delete an element from the target layout when the element is deleted from the source layout, a component adder to add an element to the target layout when the elements is added to the source layout, a component modifier to modify an elements from the target layout when the element is modified in the source layout and a mobile handler to handle modifications to the target layout where the modifications are independent of modifications to the source layout.

Further, in accordance with a preferred embodiment of the present invention, the component adder includes a parent/predecessor searcher to search for at least one of the nearest predecessor element and parent element which are the closest to an added element to the source layout and mobile layout adder to insert the added element to the target layout according to location of the at least one of the nearest predecessor element and parent element.

There is provided, in accordance with a preferred embodiment of the present invention, a method implementable on a computing device, the method includes receiving a website page from a website building system, the page having a source layout for a source display area and an object model representation of website building system elements; determining an order and set of relationships among the elements and creating a target layout of the website page for a target display area, the target layout being based on a semantic analysis and reconciliation of the determined order and set of relationships, where the source display area has different attributes than the target display area and merging modifications to the source layout and the target layout taking into account independent modifications made to the target layout to create an updated target layout configuration and where the updated target layout reflects changes made to the source layout.

Moreover, in accordance with a preferred embodiment of the present invention, the determining and creating includes analyzing object properties of the elements and modifying their suitability for presentation on the target display area, locating groups of the elements which should remain together and creating a hierarchy of super-nodes based on the location of the elements and the content relationships of the elements. It also includes determining an order for the elements within each of the super-nodes, placing the elements within the target layout based on at least one of the determined order and the groups and adjusting the placed elements before display.

Further, in accordance with a preferred embodiment of the present invention, the elements are at least one of atomic components, single-page container components and multi-page container components.

Still further, in accordance with a preferred embodiment of the present invention, the analyzing and modifying includes at least one of: modifying instances of the elements in templates, filtering the elements not suitable for the target layout, adapting the elements to the target layout, adjusting the elements to the target layout and analyzing the attributes of the elements to determine their usage suitability.

Additionally, in accordance with a preferred embodiment of the present invention, the locating and creating includes at least one of: locating groups of the elements where the elements are highly overlapping and replacing the group with a virtual element according to the grouping criteria, locating groups of elements according to hints of at least one of template, application, page or element level and replacing the group with a virtual element according to the grouping criteria, locating components where the elements are text components that are overlaid over a specific background image and replacing the group with a virtual element according to the grouping criteria, determining a certainty score for the correctness of the locating groups of the elements where the elements are highly overlapping, locating groups of the elements according to hints of at least one of template, application, page or components level and locating elements where the elements are text components that are overlaid over a specific background image; and creating a hierarchy of super-nodes based on the elements and the virtual elements.

Additionally, in accordance with a preferred embodiment of the present invention, the determining an order includes at least one of: determining a sequence of the elements of the super-nodes according to a predefined order criteria and analyzing at least one of the semantics, content, attributes, editing history and geometry of the elements of the super-nodes, determining a certainty score for the correctness of the determining a sequence of the elements of the super-nodes according to a predefined order criteria and the analyzing at least one of the semantics, content, attributes, editing history and geometry of the elements of the super-nodes and integrating the sequence determined by determining a certainty score for the correctness of the determining a sequence of the elements of the super-nodes according to a predefined order criteria and the analyzing at least one of the semantics, content, attributes, editing history and geometry of the elements of the super-nodes and creating a merged modified order.

Moreover, in accordance with a preferred embodiment of the present invention, the adjusting includes at least one of: inserting at least one of automatically added components and mobile-related components and performing at least one of creation, modification and removal of dynamic layout anchors where the anchors are adjusted according to the target layout.

Additionally, in accordance with a preferred embodiment of the present invention, the determining a sequence of the elements of the super-nodes according to a predefined order criteria includes at least one of: sequencing the elements of the super-nodes according to at least one of rows and columns, sequencing the elements of the super-nodes according to at least one of rows and columns and tracking any row/column splitting and merging and alternating horizontal and vertical slicing of the elements of the super-nodes and creating an internal tree of divisions and defining a sequence of display for the elements.

Moreover, in accordance with a preferred embodiment of the present invention, the placing includes interpreting hints attached to the elements of the super-nodes, creating line breaks according to the hints created by the locating groups of the elements which should remain together and the creating a hierarchy of super-nodes based on the location of the elements and the content relationships of the elements, applying at least one of width and height adjustment to the elements of the super-nodes and resizing decoration images.

Further, in accordance with a preferred embodiment of the present invention, the determining a sequence of the elements of the super-nodes according to a predefined order criteria includes at least one of: detecting a cluster partial order set when the elements of the super-nodes are closer in proximity compared to the regular spacing between the elements in the super-nodes, detecting a semantic relationship partial order set when there are specific combinations of the elements of the super-nodes of given types which are close together, detecting a partial order set when there are set patterns between the elements of the super-nodes, detecting a partial order set based on at least one of existing editing related grouping definitions, existing dynamic layout anchor information and the re-use of component templates for different component sets and detecting a partial order set of the elements of the super-nodes based on information collected from previous editing sessions.

Further, in accordance with a preferred embodiment of the present invention, the at least one of: automatically added and mobile-related elements includes at least one of: target device specific widgets, navigation menus, advertisements and promotional material.

Still further, in accordance with a preferred embodiment of the present invention, the method also includes detecting a partial order set when there are set patterns between the elements of the super-nodes and when the alternating horizontal and vertical slicing of the elements of the super-nodes includes determining the slicing direction of the elements of the super-nodes based on at least one of number of dividers, size of gaps found in the given projection direction, the detecting a partial order set when there are set patterns between the elements of the super-nodes and quality of alignment to axis projections in both directions.

Additionally, in accordance with a preferred embodiment of the present invention, the filtering includes removing elements not suitable for the target layout display and hiding elements not suitable for the target layout display.

Moreover, in accordance with a preferred embodiment of the present invention, the adapting includes modifying the size and width of the elements, uniting menu elements, updating content related adaptations, creating composite menus and converting character based graphics.

Further, in accordance with a preferred embodiment of the present invention, the adjusting includes mapping font-size between the source layout and the target layout.

Still further, in accordance with a preferred embodiment of the present invention, the analyzing includes stitching the elements when the elements are image components into a single image and distinguishing decoration images.

Additionally, in accordance with a preferred embodiment of the present invention, the reconverting includes deleting a page from the target layout when the page is deleted from the source layout, adding a page to the target layout when the page is added to the source layout, deleting an element from the target layout when the element is deleted from the source layout, adding an element to the target layout when the element is added to the source layout, modifying an element from the target layout when the element is modified in the source layout and handling modifications to the target layout where the modifications are independent of modifications to the source layout.

Moreover, in accordance with a preferred embodiment of the present invention, the adding an element includes searching for at least one of: the nearest predecessor element and parent element which are the closest to an added element to the source layout and inserting the added element into the target layout according to the location of the at least one of the nearest predecessor element and parent element.

Further, in accordance with a preferred embodiment of the present invention, the node creator performs at least one of removing and merging containers according to semantic analysis.

Still further, in accordance with a preferred embodiment of the present invention, the creating a hierarchy of super-nodes includes at least one of removing and merging containers according to semantic analysis.

Additionally, in accordance with a preferred embodiment of the present invention, the parent/predecessor searcher includes a clusterer to cluster elements according to their proximity to the predecessor element and the parent element.

Moreover, in accordance with a preferred embodiment of the present invention, the searching includes clustering elements according to their proximity to the predecessor element and the parent element.

Further, in accordance with a preferred embodiment of the present invention, the method is performed recursively according to the source layout.

Still further, in accordance with a preferred embodiment of the present invention, the determining and creating employ hints provided by at least one of the elements and a pre-defined template of the elements.

Additionally, in accordance with a preferred embodiment of the present invention, the mobile handler performs at least one of closing gaps in a given element line and deleting an entire element line when the component deleter deletes an element from the target layout.

Moreover, in accordance with a preferred embodiment of the present invention, the handling modifications to the target layout includes at least one of closing gaps in a given element line and deleting an entire element line when the element is deleted from the source layout.

BRIEF DESCRIPTION OF THE DRAWINGS

The subject matter regarded as the invention is particularly pointed out and distinctly claimed in the concluding portion of the specification. The invention, however, both as to organization and method of operation, together with objects, features, and advantages thereof, may best be understood by reference to the following detailed description when read with the accompanying drawings in which:

FIG. 1 is a schematic illustration of a system for converting visual applications between platforms, constructed and operative in accordance with the present invention;

FIG. 2 is a schematic illustration of the elements of a processor, constructed and operative in accordance with the present invention;

FIG. 3 is a schematic illustration of dynamic layout anchor breaking when components are moved;

FIG. 4 is a schematic illustration of why vertical lines are irrelevant in a mobile display;

FIG. 5 is a schematic illustration of the elements of a super-node creator, constructed and operative in accordance with the present invention;

FIG. 6 is an illustration of a required text re-flow due to font size and field size change;

FIG. 7 is a picture which does not look correct when resized without preserving the aspect ratio;

FIGS. 8A, 8B and 8C are schematic illustrations of the mapping between visual applications and their corresponding super-node structure, constructed and operative in accordance with the present invention;

FIG. 9 is a schematic illustration of components within containers before re-arrangement;

FIG. 10 is a schematic illustration of the components of FIG. 9 after re-arrangement;

FIG. 11 is a schematic illustration of the elements of an orderer, constructed and operative in accordance with the present invention;

FIG. 12 is a schematic illustration of a four text paragraph arrangement with multiple possible reading orders;

FIG. 13 is a schematic illustration of an arrangement which includes two text paragraphs and two pictures which have multiple possible reading orders;

FIGS. 14A, 14B and 14C are schematic illustrations of the conversion of the set of elements within a super-node into an element graph and then an element order, performed in accordance with the present invention;

FIGS. 15A, 15B and 15C are an algorithm showing the functionality of a primary direction with split and merge orderer, constructed and operative in accordance with the present invention;

FIGS. 16A, 16B, 16C, 16D, 16E, 16F, 16G and 16H are schematic illustrations of the process of the primary direction with split and merge orderer of FIGS. 15A, 15B and 15C, constructed and operative in accordance with the present invention;

FIG. 17 an example of a website layout;

FIG. 18 is a schematic illustration of horizontal and vertical divisions of super-nodes, constructed and operative in accordance with the present invention;

FIG. 19 is an example of evaluating vertical and horizontal divisions based on previous pattern similarity analysis, constructed and operative in accordance with the present invention;

FIG. 20 is a schematic illustration of how a vertical division of super-nodes is preferred as the components are better aligned on horizontal lines, constructed and operative in accordance with the present invention;

FIG. 21 is a schematic illustration of an interlocking element configuration;

FIG. 22 is a schematic illustration of component pairs having switched locations;

FIG. 23 is a schematic illustration of how four picture components can be divided into pairs in two ways;

FIG. 24 is a schematic illustration of a non-rectangular display shape remaining after carving out automatically added components;

FIG. 25 is a schematic illustration of the elements of a reconverter, constructed and operative in accordance with the present invention;

FIG. 26 is a schematic illustration of elements of a component adder, constructed and operative in accordance with the present invention;

FIG. 27 is a schematic illustration of the functionality of the reconverter of FIG. 25, constructed and operative in accordance with the present invention;

FIGS. 28A, 28B, 28C 28D, 28E, 28F and 28G are schematic illustrations of the placement of components when converting or re-converting a webpage from a desktop layout configuration to a mobile layout configuration, constructed and operative in accordance with the present invention;

FIG. 29 is a schematic illustration of methods of inserting components into the mobile version of a webpage; and

FIG. 30 is a schematic illustration of the removal of components from the mobile version of a webpage.

It will be appreciated that for simplicity and clarity of illustration, elements shown in the figures have not necessarily been drawn to scale. For example, the dimensions of some of the elements may be exaggerated relative to other elements for clarity. Further, where considered appropriate, reference numerals may be repeated among the figures to indicate corresponding or analogous elements.

DETAILED DESCRIPTION OF THE PRESENT INVENTION

In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the invention. However, it will be understood by those skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, and components have not been described in detail so as not to obscure the present invention.

Applicants have realized that existing sites and applications are typically designed for the desktop PC, with high-resolution large-scale display being very common. When accessing such sites and applications using smaller scale display numerous problems are manifested, including (for example): excessive required scrolling (in particular horizontal scrolling); difficult navigation; non-mobile adapted font sizes; designs and display components which are not adapted to mobile touch screens etc.

Since these sites may be viewed on different sized platforms such as tablets and mobile phones, a developer would be required to create multiple versions of the site or application to support these multiple use scenarios and to maintain the look and feel of the original site. These versions may differ in multiple ways, including visual layout, display components (widgets) in use, touch screen orientation and more.

Applicants have also realized that existing systems for converting website views to fit the pertinent viewing platform have typically aimed at resolving the problems for converting websites designed using markup languages such as HTML (Hyper Text Markup Language) and XML (Extensible Markup Language). These could be sites designed directly in the given markup language, or created using a code generator which creates markup language files for later hosting.

Existing systems have also focused on parsing the original web site, extracting the content information from it, and creating a modified mobile site. Such technology has typically originated from Optical Character Recognition (OCR) and page analysis systems, which are aimed at content extraction rather than content and design adaptation. Thus, existing systems typically operate so to extract the content and make it readable on a smaller device—while dismantling much of the design and look and feel of the original site.

It will be appreciated that the analysis of existing web sites may be complicated. In particular, some parts of the site may be dynamically generated, and the relationship between site elements might also be implemented procedurally. Thus, it is difficult to precisely understand the site—unless a conversion is performed during site operation (e.g. through a headless browser running on a conversion server). However, this latter method has considerable overhead, and in particular may require that a given page may be adapted to a mobile size every single time it is retrieved by every user—instead of being converted once with the conversion results re-used for all users.

Another issue with existing systems is support of changes and edits to the original web site upon conversion. It will be appreciated that some systems have been developed to attempt to compare the most recent page version to previous versions of the same page, and try to locate the differences. This has been done using comparison rules based on text similarity, position in the source file, font use, etc. This often requires the designer to manually create a binding between the mobile version and elements of the original desktop version.

However, since page editing is performed separately to the conversion process, the site might have changed drastically between the two versions. For example, a new developer (having a completely different style) might have started working on the site. Alternatively, a new technology or library could have been embedded in the site. Existing systems may attempt to compare the two site versions—which may be very different (internally) from each other even though they look the same. The comparison of two versions of the same web site can be done heuristically but will still not be able to match heavily modified site elements.

Applicants have realized that the above mentioned limitations may be overcome by using an object oriented visual design system. Such a system may be used to create interactive applications and websites and may be used to maintain and create parallel layout definitions between different display platforms for a given application. A visual design system may also provide an internal, consistent object data model of the site, with precisely specified attributes for all site objects. Thus, a visual design system may provide multiple visual layouts for a single site or application with a single set of components.

Applicants have also realized that the use of such a visual design system may include collected editing session history information which may be used to detect component changes and component relationships. Thus, for example, if a designer duplicates a pair of objects (say a picture and a caption) a number of times, it may be inferred that such pair may be related and that it is likely that the pair members should remain close together when being converted to mobile. Thus container objects etc. may be converted while maintaining their original object hierarchy and relationships. Other information may include objects which are edited or moved together, objects which were historically grouped, objects or object sets which were created by duplicating pre-existing objects or object sets and the timing of object editing i.e. was there a specific change applied in a sequence to a certain subset of the objects.

Visual design systems may typically have unique identifiers (ID) per object. Such ID's may be used to match different site versions and maintain site changes consistently. Furthermore, a visual design system may employ dynamic layout, including anchors between displayed components which control layout changes made to them. Such anchors can be used to derive additional grouping and layout information, and can also be used to fine-tune the layout to different mobile display sizes. The conversion sub-system may in fact generate additional dynamic layout anchors automatically for later use during display.

Furthermore, as smart phones have proliferated, full scale and advanced HTML browsing, similar to what is available on the desktop have become common in the mobile environment as well. Therefore a system is required that may use similar handling for all platforms (desktop, tablet and mobile) in order to utilize the advanced browsers available on all platforms.

It will be appreciated that visual applications may be standalone systems such as the PowerPoint Presentation Program commercially available from Microsoft Inc. or may be embedded inside a larger editing system such as the Microsoft Word AutoShape Editor also commercially available from Microsoft Inc. Such applications may typically comprise of pages and components which may further arranged in a hierarchy of containers (single page and multi-page) inside a page containing atomic components. A multi-page container may also display multiple mini-pages.

Pages may also include list applications (such as are discussed in US Patent Publication No. US 2014/0282218 entitled “WEBSITE BUILDING SYSTEM INTEGRATING DATA LISTS WITH DYNAMIC CUSTOMIZATION AND ADAPTATION” published 18 Sep. 2014 and assigned to the common assignee of the present invention) and third party applications. Pages may also use templates such as general page templates or component templates. A specific case is the use of an application master page containing components replicated in all other regular pages. The arrangement of components inside a page or a set of pages may be known as the layout. It will be appreciated that the discussion below describes layouts consisting of rectangular axis-parallel components and containers. Other layouts may also include non-rectangular components and containers including in particular, classes of objects such as rotated or skewed objects and objects consisting of multiple regions, such as a video player component which may have a video display area and a video control area. Such regions may be joint, disjoint or intersecting. Other layouts may also include objects consisting of an arbitrary geometrical shape.

It will be appreciated that the handling of such non-rectangular multi-region objects may be done by using an enclosing rectangle for each non-rectangular object or by adapting the geometrical primitives to handle extended non-rectangular objects, The adaptation may include projection to axis, distance between shapes; minimal/maximal directional distance between shapes (i.e. vertical or horizontal distance), shape intersection detection; shape/line intersection detection; intersection region calculation and shape area calculation.

It will be further appreciated that each application may have multiple layout configurations e.g. desktop (portrait and landscape) and mobile. Some properties of website components may also have a per layout configuration value such as actual component inclusion (e.g. a specific component might be mobile-only, or be desktop/tablet-only). This could be a container component—with all contained siblings being affected together. Other properties may include size (h,w), position (x,y), z-order information, style (font, size, color), color, polymorphic component type (e.g. a given gallery might use different gallery types for desktop and mobile list components), menu/gallery settings (e.g. grid gallery # of columns/rows), a third party application variant (for third party applications which have multiple variants having different display sizes) and list application view association—for a given item type or item associated with a view, different views can be specified for different list components.

It will also be appreciated that each layout configuration may have a default screen size value (in pixels). The actual screen size may differ to some extent, with this difference handled via the dynamic layout support of the pertinent visual design system. The desktop layout configuration may be the main layout configuration since it has the largest screen width. Other layout configurations may be considered shadow layout configurations of the main layout configuration and may have screen width and height different from that of the main layout configuration. In particular, the width of the shadow layout configuration may be smaller than the main layout configuration (e.g. mobile phone display), similar (e.g. tablet) or larger (e.g. large display screen).

It will be further appreciated that when converting application pages or website pages from a desktop to a mobile version, there are two conflicting goals: preserving the readability of the content on the pages on the reduced version, and preserving the visual layout of the page. Existing systems are mostly aimed at extracting content at the expense of design (such as U.S. Pat. No. 7,203,901 entitled “SMALL FORM FACTOR WEB BROWSING”). These systems are derived from published OCR/Page Analysis algorithms which extract text from regions of interest, and do not attempt (or make minimal effort) to preserve the existing visual web site design.

Some algorithms attempt to preserve the design and/or layout to some extent by shrinking the entire page or elements thereof. However, such shrinking is very limited, since (in particular) text content becomes quickly unreadable as font size is reduced.

Reference is now made to FIG. 1 which illustrates a system 100 for converting visual applications between platforms according to an embodiment of the present invention.

System 100 may comprise an initial layout converter 200, a layout reconverter 300 and a database 50. Initial layout converter 200 may further comprise a page receiver 210 and a processor 220. Converter 200 may convert a main layout configuration from a desktop to a shadow layout configuration for a mobile for the first time. Reconverter 300 may reconvert layout configuration after the main layout configuration application has been edited. All applications and configurations may be stored on database 50.

System 100 may be installed as part of a website building system on a server 150 with the ability to communicate with various clients 5 representing various platforms such as a desktop 5A, a smart-phone 5B and a 3^(rd) party system interface (program-to-program communication) 5C via a suitable communication medium such as the internet. Server 150 may store different layout configurations for the each of the platforms (including multiple layout configurations for each single platform). In an alternative embodiment, system 100 may be also be run locally on a client or may be adapted to provide services to another system via a suitable API (Application Programming Interface).

It will be appreciated that initial layout converter 200 may convert each page in an application to a sufficiently narrower version so that it may be viewed on a narrower screen using vertical scrolling and minimal (if any) horizontal screening. It will be appreciated that when system 100 is appropriately integrated (e.g. running on the pertinent client of the website building system), system 100 may perform the conversion in responsive mode, in which a new layout is calculated each time the screen dimensions change.

Reference is now made to FIG. 2 which illustrates the elements of processor 220. Processor 220 comprises a pre-processor 201, a super-node creator 230, an orderer 240, a placer 270 and a post processor 202. Pre-processor 201 may comprise a template handler 206, a component filterer 221, a component adapter 225, a component adjuster 227 and a component analyzer 229. Post processor 202 may comprise an automatically added components (AAC) inserter 282 and a dynamic layout (DL) coordinator 284. It will be appreciated that the resulting target layout configuration may be displayed by displayer 290 via the pertinent website building system. It may be appreciated that if the system 100 is fully integrated with the pertinent website building system, and directly modifies its data structure, post processor 202 may also perform a data-structure restoration post-processing phase, so as to adapt the modified website building system data structures to be displayed by displayer 290.

It will be appreciated that initial layout converter 200 may handle each page of the application or website separately. In a regular mode, it may convert each page to a sufficiently narrower and typically longer version, so that it can be viewed on a narrower mobile screen using vertical scrolling and minimal horizontal screening. It will be further appreciated that some target devices such as larger tablets and outdoors display screens may have a wider screen than the original desktop screen and therefore narrowing may not be required but rather adapting to a larger display width.

Initial layout converter 200 may process the three dimensional (the x, y coordinates of the screen and the display z-order) set of components and may convert it into an ordered set in the mathematical sense. The generated total order may represent the order in which the information is read on the pertinent page by the user. Initial layout converter 200 may then display the ordered components on the on the narrower mobile display.

Initial layout converter 200 may process the page to be converted dividing the pertinent page into super-nodes based on an analysis of the components and their content relationship as described in more detail herein below.

Pre processor 201 may analyze the suitability of the components of the pertinent page for the target configuration layout and may make modifications to the existing components where necessary. Although different combinations of layouts may be configured, the examples below discuss conversion from a desktop layout configuration to a mobile layout configuration. Template handler 206 may create modified instances of elements in templates if they exist. Component filterer 221 may filter components to their suitability for the mobile layout configuration, component adapter 225 may adapt components especially for the mobile layout configuration, component adjuster 227 may adjust components especially for the mobile layout configuration and component analyzer 229 may analyze components (including their content, geometry and any other attributes) so as to determine their actual usage. For example, a picture component may be a background image or a content image—affecting its handling by the other parts of system 100.

Super-node creator 230 may locate groups of components which should remain together (such as components which are highly overlapping). Super-node creator 230 may further create a hierarchy of super-nodes based on the current page and the elements within the container hierarchy (possibly modifying the container hierarchy as further described below). Orderer 240 may determine an order for the elements of each of the super-nodes. Placer 270 may place the node elements within the mobile layout area based on the determined order and post processor 202 may make any final adjustments to the layout as required. Automatically added component (AAC) inserter 281 may insert any automatically added components (as discussed in more detail here in below) as well as other mobile-related components which should be inserted post-ordering (such as mobile-specific menus) and dynamic layout (DL) coordinator 284 may modify any existing anchors if necessary after placement. Displayer 290 may display the new layout on the mobile platform, possibly performing final adjusting for the specific mobile platform as described in more detail herein below.

Page receiver 210 may receive the webpage with a desktop layout configuration to be converted and may forward the page to page pre processor 201.

As discussed herein above, there may be a container hierarchy which may provide additional information on the logical arrangement of the page. The hierarchy may include regular containment relationships as well as parallel containment relationships such as multiple parallel mini pages contained in one multi-page container. Preprocessor 201 may analyze this hierarchy and any specific container relationships at the start of the process in order to gather information that may be useful to the process. Preprocessor 201 may also determine the screen size of the target application and extract navigation menus (site-global and page-specific) and merge them to create one or more united page menus such as top and bottom menus.

It will be appreciated that the pertinent visual design system may support templates, including multi-level and multiple inheritances of templates. Such templates may include single pages, multiple pages or elements of pages. Template handler 206 may create modified instances of the elements of the templates, so an instance of a template may consist of template components to which local modifications are applied. Template handler 206 may further make necessary specific modifications in order to adapt it to the mobile layout configuration. For example, if the inherited components are sufficiently close to the top or bottom of the page, they may be included in a page-specific header or footer as appropriate. The inherited components may be logically duplicated (with modification) in each page which inherits them.

It will also be appreciated that the pertinent visual design system may retain single copies of the inherited components, but may allow a per-page layout to be applied to them (as the adaptation to mobile in each page may be different). Template handler 206 may use this information about the original template of a given component set to create a component group based on the template—ensuring better conformance to the original intent of the template. For each page of the pertinent website individually, preprocessor 201 may review the elements taking into account parameters such as the dimensions of the target screen. Component filterer 221 may remove or hide components that are not suitable for mobile display. Such components may include, for example, vertical separator lines (but not horizontal lines), Adobe Flash content (which can't be played on some mobile systems) or ornamental frames. Components which are completely unsuitable for mobile display are removed before further processing. For components which are not recommended for mobile display, component filterer 221 may elect to hide them rather then remove them completely. In this case, the website designer may be able to re-insert them into the mobile layout configuration as they would be visible and re-insert-able through the mobile modifications display GUI as described in further detail herein below. It will be appreciated that some components might be unsuitable or not recommended for a mobile platform, but still provide substantial information to initial layout converter 200.

Reference is now made to FIG. 4 which illustrates a vertical line E between components on the desk top version. For example, a vertical line between components would be quite useless on the mobile layout configuration as shown as it would typically be converted into a long (and empty) spacing between component sets. As is illustrated, when the components A, B, C and D are re-arranged to be stacked up vertically for a narrower mobile display, the vertical line E would have wasted display space and therefore should be removed. However, the vertical line is still very useful in signaling to initial layout converter 200 that the 4 components A, B, C and D should be arranged as A+B and C+D and not as A+C and B+D. To take advantage of this information, component filterer 221 may mark the vertical line as “remove completely” or “hide later”, but still add an invisible, 0-width line which provides the necessary portioning information to initial layout converter 200.

Component adapter 225 may employ width-reduction means, similar to these which may be employed by placer 270 as detailed herein below (whenever such means can be activated at this pre-processing stage). For example, component adapter 225 may switch components to “lighter” mobile versions. For example, switch galleries which may display multiple mini-pages (e.g. accordion type) to galleries which display a single contained mini-page at a time. Component adapter 225 may also provide a specific “lightweight” version of given components for use in mobile versions of the created applications (through a separate version or a different view customized for mobile display).

Component adapter 225 may also handle content-related adaptations such as converting character-based graphics to vector-based scalable graphics. Designers sometimes use text characters as decorations or separators, e.g. “///////////”, “----------------”, “-=-=-=-=-=-=”.

Once converted to a similar vector-based shape, they can be accurately resized without requiring text handling.

Component adapter 225 may also unite menu components into a unified mobile-friendly (small format) menu. Pages often contain multiple navigation menus used for both inter-page and intra-page navigation. Furthermore, some pages may contain multiple menus defined in different ways such as menus defined in the page itself, menus resulting from page templates used in the page (e.g. application-global header and footer containing menus) and menus defined automatically based on the application structure (e.g. a top-level page navigation menu). Component adapter 225 may further create composite menus (one or more) and merge menus into them depending on criteria such as proximity of evaluated menu to the given created composite menu (e.g. unite all menus starting at the top 200 pixels of the page into a single top-level menu). Component adapter 225 may insert the single (unified and mobile-friendly) or the multiple modified menus directly, or may “post” them for inclusion at a later stage (e.g. by placer 270 or by automatically added components inserter 281). This is especially relevant if the (one or more) menus are added in such a way as not to be a part of the regular component layout but rather as “floating”, conditionally activated etc.

Component adjuster 227 may modify component parameters to decrease their width. An example of this is the modification of matrix gallery components to 1-2 columns only. Component adjuster 227 may also modify components defined with large ornamental borders into a simpler, less ornamental version of the same component.

Component adjuster 227 may resize components to reflect the actual size used. For example it may shrink text components according to actual text content using enclosing rectangles.

Component adjuster 227 may also “dissolve” containers which tightly wrap an internal component. For example, if a container tightly wraps a sub-container with no additional components in the larger container, it may remove the internal container, merging the two containers into one. It will be appreciated that in this manner a hierarchy level is saved as the container is transparent to the process.

Designers sometimes add multiple sections of the same image which together visually form a single image. Component adjuster 227 may employ “image stitching” and use the attributes and content of the multiple such image components to detect if they should be stitched into a single image. The decision may be based on editing history—if the images were created and/or modified together, based on similarity of dimension in the adjacent image edges, based on the length of overlap of adjacent image edges compared to the separation between the images or based on use of similar colors/features on the boundary (detected through the use of an image content analyzer).

Component adjuster 227 may employ font size mapping. The text in any given application or page may use a large variety of font sizes. These sizes should be mapped to a given (smaller) range for use on a mobile device—while keeping font size differences if possible. Some font sizes would be too small while some would be too large. The mapping is not linear, i.e. not multiplication by a fixed factor. However, it is a monotone function of font size. Component adjuster 227 may collect the range of font sizes used and map this range to the range of allowed mobile font sizes. Component adjuster 227 may provide such mapping which is system wide, or specific at the user, application, page or component level.

In application/page specific font size mapping, component adjuster 227 may count the amount of text (characters) in each given font size, and then use a normal (Gaussian) cumulative distribution function so the most common character sizes are mapped to the font sizes at the center of the range of allowed mobile font sizes. It will be appreciated that such font size may be further modified by a mobile layout configuration specific font size rescaling adjustment.

It will be further appreciated that when processing the component structure, it is important to distinguish between decoration images and content images (with the latter being part of the actual page-specific data). Decoration images can be more freely scaled and clipped as their content is not critical to the actual use of the application. Furthermore, content images should be analyzed similar to other components in the analysis algorithm below, whereas decoration images should not. Component analyzer 229 may recognize a decoration image as such based on any of the following: specific “decoration image” component type or by specific hints at the template/object/component type/designer level. Component analyzer 229 may also recognize if the image covers an area, e.g. the image covers all (or most) of the container in which it resides, whether the image is a background to multiple components or whether the image is adapted to its components' display area using an operator which signifies that the picture serves as decoration, such as “repeat picture in lines”. Decoration images are not always “tight” with respect to the components contained inside them, often due to the choice of the specific image involved.

Once the elements have been modified as described herein above, super-node creator 230 may locate groups of components which may be highly overlapping or otherwise related and should be handled together. This is required since (for example) highly overlapping components may form a composition, therefore they must be placed together in order to keep the same inner proportion when resized. It will be appreciated that once all groups have been located, super-node creator 230 may then convert the resulting hierarchical setup of components into a hierarchy of super-nodes based on the current page and/or container hierarchy so that there are multiple total orders at different structure levels. For each individual page or mini page (inside a single page or multi page container), the super-nodes may be known as page super-nodes. It will also be appreciated that each super-node may be considered a separate entity and once defined, the objects within may be rearranged as described in more detail herein below.

It will be further appreciated that some located groups may also be converted into virtual super-nodes (as described in more detail herein below) which may then be handled as a single component similar to the page super-nodes as described herein above. It will be appreciated that each virtual super-node type may have an associated mobile adaptation method defined when it is created such as re-scale in a particular way, limited resize, reorganize etc.

Reference is now made to FIG. 5 which illustrates the elements of super-node creator 230. Super-node creator 230 may comprise an overlap group locator 232, a text over image (TOI) group locator 234, a predefined group locator 236, a node creator 238 and a scorer 500 the functionality of which is described herein below in relation to FIG. 11.

Overlap group locator 232 may determine a set of highly overlapping components which may typically create together a specific design and should retain the same proportion between the group components when placing the group in a new layout. For example, an image and a text forming a logo should retain the same proportion and the relative location regardless of their size and position in the new layout, to maintain the structure of the logo.

Overlap group locator 232 may loop on all possible component pairs within the super-node. For each pair of intersecting components, overlap group locator 232 may calculate the amount of relative overlap as the amount of overlap compared to the smaller value among the two enclosing rectangles of the two components. The calculation may be based on the intersection area or by combining the relative intersection for each axis (e.g. using an average). If this relative intersection exceeds a given threshold, overlap group locator 232 may consider the component pair as overlapping. Once it has finished looping, overlap group locator 232 may merge the overlapping pairs into overlapping groups according to common members. For example component pairs [a,b] and [b,c] may be merged into [a,b,c]. It will be appreciated that the area for each created virtual component may be that of the minimal enclosing rectangle for all grouped components. It will be further appreciated that overlap groups may typically represent detailed design elements and therefore should be only resized and not rearranged. In particular, the text component in such a group should be according to its original size instead of using the font size mapping as described herein above as performed by component adapter 225. Thus the text should be scaled in such a way as to avoid font size mapping completely or use a scaling factor which reverses the effect of font size mapping.

It will be further appreciated that some components may be omitted from an overlap group definition. These may include specific components, such as (for example) horizontal lines and screen-width containers and text size bigger than a given limit (e.g. 25 characters) which is interpreted as the text being a regular paragraph (which should not be marked as overlap group and resized as a composition) rather than as a logo text.

Text over image group locator 234 may group a text component that is overlaid over a specific background image. It may detect cases in which a text component is set on top of a background image and the two should be handled together. Text over image group locator 234 may look for a pair of text and image components in the current super-node in which either the text component is completely contained inside the image component or on each of the four sides the text component is sufficiently close enough (by a given threshold) to the enclosing image component.

If the component is a logo instead of text-over-image, text over image group locator 234 may instead instruct overlap group locator 232 to create an overlap group instead of a text over image group. This may be done based on scoring according to the following criteria: the amount of text characters is below a given threshold, the use of ornamental or other highly unique fonts or the use of a text baseline which is not regular horizontal line (e.g. the text is drawn along a curve).

Predefined group locator 236, may group components according to hints at the template, application, page or components level. This may be regarded as a permanent version of grouping often performed using the GUI of the specific design system so that multiple components may be manipulated together.

It will be appreciated that once groups of overlapping elements have been located and grouped, node creator 238 may merge and convert them into virtual super-nodes as described in more detail herein below and then may create the final super-nodes (including virtual and page super-nodes). The remaining elements may be considered disjointed and thus may be easier to order as discussed herein below.

Reference is now made to FIGS. 8A, 8B and 8C which illustrate examples of how super-node creator 230 may create a hierarchy of super-nodes. As discussed herein above, super-nodes created from pages and mini-pages may be considered page super-nodes and super-nodes created from detected groups may be considered as virtual super-nodes. For page P1 in FIG. 8A, a page (or mini page) containing three text elements may be considered a page super-node (PSN1) with 3 elements. In FIG. 8B, page P2 may be considered a page super-node (PSN2) with a text element and a virtual super-node (VSN1) containing a text element and a drawing element. If pages P1 and P2 were mini-pages contained within a Page P3 the resulting node structure may be a page super-node (PSN3) having 2 page super-nodes (PSN1 and PSN2) each having elements as illustrated in FIG. 8C.

It will be further appreciated that node creator 238 may define tightly wrapped containers as a container A residing inside a container B where A and B have very similar sizes (i.e. there are small margins on all sides between A and B and where A is the only component inside B). Node creator 238 may also perform container re-arrangement based on semantic analysis of the components in multiple containers. For example, as is illustrated in FIG. 9 to which reference is now made, text components T1, T2 and T3 are contained in the container C1 and picture components P1, P2 and P3 are contained in the container C2. Node creator 238 may perform semantic analysis to recognize related text and picture component pairs based on their type, proximity and relationship to other components as further described below. Based on this analysis, node creator 238 may recognize that T1 and P1 form a related pair, as well as T2-P2 and T3-P3, and thus may remove these six components (T1, T2, T3, P1, P2, P3) from the containers C1 and C2 and place them in the containing page, preserving the information about the relationships between them as shown in FIG. 10 to which reference is now made.

Furthermore, node creator 238 may classify components that substantially overlap a given container (e.g. over 75% area overlap) as members of the specific container for the purpose of super-node generation, so to make the super-node hierarchy better reflect the visual arrangement. This is relevant to visual design systems in which components that are not logically contained in a given container may still overlap the container.

Once the super-node structure has been defined, orderer 240 may create an order for the set of components and contained page super-nodes and virtual super-nodes within each super-node (separately). It will be further appreciated that this basic order may be further modified as a result of the findings of a partial order set locator as described in more detail herein below. Reference is now made to FIG. 11 which illustrates the elements of orderer 240. Orderer 240 may comprise a basic orderer 247, a Partial Order Set (POS) locator 250 and an order integrator 245. Basic orderer 247 may further comprise a primary direction orderer 241, a primary direction with split and merge orderer 242, and an H/V slicer 243 H/V slicer 243 may further comprise an element divider 244 as described in more detail herein below.

POS locator 250 may comprise a cluster POS locator 251, a semantic relationship POS locator 252, a pattern POS locator 253, a predefined POS locator 254 and an ESI (Editing Session Information) based POS locator 255. It will be appreciated that POS locator 250 may analyze the semantics, content and geometry of the components.

It will be appreciated that orderer 240 may attempt to emulate the order in which a human reader may view the elements on a page (or within the specific super-node). It will be further appreciated that since a page is a 2-dimensional entity (or even 3-dimensional with z-order included), this order may not be so well defined even for a human reader.

Reference is now made to FIG. 12 which shows an arrangement of four text paragraphs in a square arrangement. Assuming that the paragraphs are in English (which reads from top to bottom and left to right) it is not clear if the reading order should be A1, A2, B1, B2 or A1, B1, A2, B2. Both orders may be considered correct. Furthermore if the elements are text and pictures as is illustrated in FIG. 13 to which reference is now made, it is not clear what the related text and picture elements are.

Primary direction orderer 241 may pre-define a primary direction (i.e. sorting rows first or columns first) and may then try to sort the components in the 2 dimensional page based on the primary direction and then the secondary direction. For example, primary direction orderer 241 working in rows-first mode may sort the elements in a super-node so that the element A precedes the element B if either A and B have a suitable Y overlap (for example at least 25% of the smaller height of the two) and element A is to the left (i.e. order within the row) or if A and B do not have sufficient Y-overlap and A is higher (i.e. order among rows).

Primary direction with split and merge orderer 242 (herein PDSM orderer 242) may also pre-define a primary direction and may also try to track any row/column splitting and merging. This may be considered more common for columns as opposed to rows. Reference is now made to FIGS. 14A, 14B and 14C which illustrate components (1-10) within a super-node. It will be appreciated that the components may be ordered according to their order in the generated column graph within the node. PDSM orderer 242 may essentially convert a set of rectangles (as shown in FIG. 14A) to a graph of columns (which may merge, split or continue as shown in FIG. 14B) which is then used to generate an ordering of the components (as shown in FIG. 14C). The rectangles may possibly intersect.

Reference is now made to FIGS. 15A, 15B and 15C and FIGS. 16A, 16B, 16C, 16D, 16E, 16F and 16G which illustrate the steps taken by PDSM orderer 242 to define a column graph and the resulting order. FIG. 16A illustrates a set of elements C which need to be processed. PDSM orderer 242 may define a 2-element relationship between the elements in the set (step 400) and then may “sandwich” the elements to be ordered (set C) between a dummy header element A and a dummy footer element B (step 410) as is shown. PDSM orderer 242 may then create two new sets—a set X of the generated columns (in their current state) (steps 420 and 430) and their elements and a set Y of elements to be processed into columns (steps 440 and 450). PDSM orderer 242 may then sort set Y (step 460) and scan the elements of set Y from top to bottom according to their y-order (step 470) and for each element Q in set Y select a subset R of the elements (in all columns in X) that control Q. It may then arrange the elements according to the order in the graph (top to bottom and left to right) and in the case of orphan columns, arrange them according to the X order (step 480). Reference is now made to FIG. 16B which illustrates how elements A, E and F all control Q. PDSM orderer 242 may then remove any duplicates from set R. As can be seen in FIG. 16B, as well as A, E and F all controlling Q, A controls E and E controls F. In this scenario the only connection required by PDSM orderer 242 may be the connection between Q and F (the last controlling element). It will be appreciated that if R is empty, this may be considered the beginning of an orphan column with no connection and therefore a new column is opened in X with the element Q as is illustrated in FIG. 16C to which reference is now made. It will be further appreciated that if R has more than one element, PDSM orderer 242 may connect element Q to the columns containing each of the elements C1 . . . Cn, creating a column continuation (if connected at end of column) or column split (if connected in mid-column) for each. If there is more than one such column, PDSM orderer 242 may merge the columns as is illustrated in FIG. 16D to which reference is now made. As is shown in FIG. 16D, PDSM orderer 242 may merge columns G and H into a single column continued by element Q. Reference is now made to FIG. 16E which shows a column G which continues from an element which is not the last element in column G. In this scenario element Q creates a split in column G creating 2 columns continued by F and Q.

It will be appreciated that when a column splits at a given point, the split set is ordered from left to right i.e. the multiple columns continuing the column which was split have an order defined for them according to the x-coordinate of their left edge. The same applies to column merging. It will also be appreciated that PDSM orderer 242 may have a combined split and merge situation such as is illustrated in FIG. 16F to which reference is now made. As is illustrated, element Q may create a split for the 2 columns containing elements G and H. PDSM orderer 242 may immediately merge the splits into a single column continued by element Q.

Therefore PDSM orderer 242 may transfer elements from Y to X and connect them to one or more existing columns in X (or possibly creating new columns) based on geometrical criteria. It will be appreciated that this scanning process may create a series of columns in X which may start, split, merge or terminate. The process ends when the dummy footer element B is reached. PDSM orderer 242 may then scan the graph (defined according to the columns in the set X) to calculate the resulting order. PDSM orderer 242 may then arrange the elements according to the order in the graph top to bottom and left to right such as is illustrated in FIG. 16G to which reference is made.

It will be further appreciated that in the case of orphan columns, PDSM orderer 242 may arrange them according to the numbered order (1-8) as is illustrated in FIG. 16H to which reference is now made. If the element pairs a-c and b-d are close enough to be connected, they may form complete columns and the order between them may be a-c-b-d and not a-b-c-d. Since they are not close enough, they are not connected causing elements c and d to be orphan columns and the order to the specified number order is modified as described herein above.

It will be appreciated that the functionality of PDSM orderer 242 may be appropriately modified for super-nodes which have content arranged from right-to-left (rather than left-to-right).

H/V slicer 243 may use alternate horizontal and vertical slicing of the elements in a super-node to create an internal tree of such divisions and thereby define an order of display among the elements. It will be appreciated that such an internal tree is specific to a given super-node and is not related to the general super-node level tree. It will be appreciated that H/V slicer 243 is best adapted to “chocolate table” style sites which are built from horizontal and vertical sections—classical in newspaper layouts such as the example page as is illustrated in FIG. 17 to which reference is now made. H/V slicer 243 may take the element set of a single super-node and create an internal tree of nodes (which are different from the higher-level super-nodes, as each super-node may contain a separate such internal tree). The nodes may be of the following types:

V-nodes (vertically-arranged nodes)—a set of sub-nodes/elements which are arranged from top to bottom.

H-nodes (Horizontally-arranged nodes)—a set of sub-nodes/elements which are arranged from left to right (the right to left arrangement is described herein below).

Leaf nodes—nodes which represent final elements of the internal tree—components or contained super-nodes. A leaf node may contain multiple components which still fit within the allocated width.

UR-nodes (UnResolved nodes)—nodes which include multiple elements which were not arranged yet. This is the initial state of any node before it converted into a V/H/Leaf node.

Each node may contain a set of element references as well as the coordinates and sizes of the underlying elements, and a complete enclosing rectangle for the nodes' elements. The entire collection of nodes (of the four types above) inside a single super-node may be known as an internal tree. It will be appreciated that H/V slicer 243 may adjust the procedure for super-nodes which are specified or detected as containing right to left (R2L) material or having a R2L layout.

H/V slicer 243 may on an initial call, create an internal tree with a single UR-node and place references to all elements in the super-node inside it. H/V slicer 243 may handle the UR node by taking all the elements in the node. If the enclosing rectangle of the elements fits in the allowed width, H/V slicer 243 may convert the node into a leaf node. H/V slicer 243 may also call on element divider 244 which may suggest a specific division (horizontal or vertical) of the elements of the UR-node into sub-groups.

H/V slicer 243 may then convert the UR-node to an H-node or V-node as appropriate. It will be appreciated that for each of the sub-groups returned by element divider 244, H/V slicer 243 may calculate an enclosing rectangle R for the elements in the sub-group. If the width of R fits in the allowed width, then it may create a leaf node descendent of the node N from the sub-group. Otherwise, if the sub-group has more than 1 component H/V slicer 243 may create a UR-node descendent of the node N from the sub-group and handle it accordingly as described herein above (i.e. through a recursive application of H/V slicer 243). If the width of R does not fit in the allowed width, H/V slicer 243 may create a leaf node descendent of the node N from the containing single element sub-group. H/V slicer 243 may then apply width reduction such as resizing, text re-flowing etc. as described herein above.

H/V slicer 243 may then scan the generated internal tree recursively (using depth first scanning) and emit the components (such as the leaf nodes) according to the scanning order. H/V slicer 243 may scan each H/V-node according to its natural order (e.g. top-to-bottom for V-node). It will be appreciated that at this stage, since the basic order of the elements has been generated, the created internal tree for this super-node is no longer needed.

As discussed herein above, element divider 244 may calculate a division for a group of elements. It may calculate an enclosing rectangle for each element, ignoring ornamental borders. Element divider 244 may then project these rectangles onto both the X and Y axis.

Element divider 244 may then divide each set of axis projections into segments with differing number of components projected into them. Segments with zero components projected onto them represent gaps in the given projection direction. It will be appreciated that element divider 244 may provide specific (possibly non-displayable) separator line components to help in determining the right splitting direction (e.g. to use as designer hint into the process). Such components may also have an assigned “weight” so they count (for the projected rectangle counting) as one or more components.

If gaps are found in both directions, element divider 244 may generate the horizontal and vertical divisions of the elements based on dividers orthogonal to the gap segments. For example as is illustrated in FIG. 18 to which reference is now made, case A is a horizontal division (into columns) using a single divider and case B is a vertical division (into rows) using two dividers.

Element divider 244 may calculate a Division Quality Rating (DQR) for each of the two division directions using a weighted average of the maximal number of dividers and the maximal total size of gaps found and the minimal number of cases in which similar elements are broken into separate sub-groups by the division. This information may be available from pattern POS locator 253 (as described in more detail herein below) at the super-node creation stage which defines similarity relationship between descendent super-nodes. As is illustrated in FIG. 19 to which reference is now made, a vertical division (into rows) may be preferable to keep the services/projects/client's boxes (A, B and C) together.

Element divider 244 may also take into account in which of the directions the components are better aligned. For example as is illustrated in FIG. 20 to which reference is now made, in scenario A the division should be vertical (i.e. the components are arranged and aligned in rows) even though there are larger gaps when doing horizontal division (i.e., into columns). This can be better observed when alignment lines are added in scenario B.

Element divider 244 may also add a constant preference factor to the horizontal division (which reduces width) vs. vertical division (which does not). Element divider 244 may then return the division with the higher DQR.

If gaps are found in just one direction, element divider 244 may return the division in this direction. If no gap is found, there may be a case of interlocking elements. In such a case, element divider 244 may create a divider that crosses one of the elements. For example, as is illustrated in FIG. 21 to which reference is now made, the elements are divided using the vertical divider line A which may cross element B only. All elements marked R may be associated with the right side of the division (including element B), and element L may be associated with the left side of the division.

It will be appreciated that in this scenario, element divider 244 may find the projection segment (from the projection segments in both the X and Y axes) that has a minimal number of crossed elements. If there is just one such segment, element divider 244 may define a division based on it. If there are two or more such segments (in either directions) having identical minimal number of crossed elements, element divider 244 may create a set of single-divider divisions based on of the segments having the minimal number of crossed elements.

For each of these divisions, element divider 244 may then calculate a DQR based on a weighted average of, the criteria for the regular DQR calculation (as discussed herein above), the minimal area of the crossed element and the definitiveness of the cut, i.e. having the minimal percentage of the crossed element area on one side of the crossing divider, so that the crossed element belongs more distinctively to one of the two sides of the divider. Alternatively, element divider 244 may use the division with the highest DQR.

Element divider 244 may then return the selected division, with each crossed element attached to the side of the divider which contains the larger area of the crossed elements.

In an alternative embodiment, element divider 244 may try to create multiple dividers based on the multiple projection segments having the same number of crossed elements and evaluate the divisions containing multiple such crossed elements.

It will be appreciated that element divider 244 may call an alternative DQR calculation recursively for each of the possible divisions and may check the DQR value of divisions created after each of the potential divisions is attempted. It will be further appreciated that in this manner, element divider 244 may find the best single element to cross so that further divisions may be successful.

It will be appreciated that in parallel to basic orderer 247, POS locator 250 may detect sets of components which are related in some way and should possibly remain together when the elements are re-ordered for a mobile device display. For example, the components may be a text heading and the matching text paragraph.

Cluster POS locator 251 may detect a cluster partial order set when the components (of any type) are very close together compared to the regular spacing between components in a particular super-node. Cluster POS locator 251 may calculate the average distance between components in the super-node and then loop on all component pairs in the super-node, searching for component pairs whose distance is a given fraction of the calculated average distance. Cluster POS locator 251 may then unite these component pairs into sets, enforcing a maximal given distance between the two most distant components in each such set (specified as a fraction of the average distance). Cluster POS locator 251 may also use a mean or median calculation instead of the average calculation in order to take into account a given number of outliers which may distort the average distance value. In an alternative embodiment, cluster POS locator 251 may use any clustering algorithm known in the art. POS locator 251 may then check the extracted clusters and if dense enough (e.g. the maximal distance between cluster members is below a given certain threshold), create a cluster partial order set.

Semantic relationship POS locator 252 may detect a semantic relationship partial order set when there are specific combinations of components of given types which are close together for example a picture and its caption. Semantic relationship POS locator 252 may scan all possible pairs of components within the super-node and for each potential pair, check that each of the components has the right type (e.g. one is text and one is picture), that the components are close together (distance is below a given threshold) and that there is no intervening component between them. Semantic relationship POS locator 252 may check that for an evaluated pair of components [A, B], that there is no third component C which may replace B, is of the right type for B and is closer to A than B. The same applies for the relationship between A and C.

Another combination of pairs of components may be text and a button partial order set. It will be appreciated that in this scenario, semantic relationship POS locator 252 may link a button describing a text field to the actual text field. It will be appreciated that the relationship may be determined according to position only.

Another combination may be text joining partial order set. In this scenario, semantic relationship POS locator 252 may merge multiple text elements which continue each other. It will be appreciated that semantic relationship POS locator 252 may only recognize one text element being above another text element. It will be further appreciated that there may be any number of such elements in a given set—not just 2—which are all linked together.

Pattern POS locator 253 may detect a pattern partial order set when there is a repeating pattern of a given number of components (e.g. component pairs or triplets) having specific type, properties and layout at a given distance. Pattern POS locator 253 may also detect pattern partial order sets in the case of switched patterns such is illustrated in FIG. 22 to which reference is now made. Component pairs A and C have text on the left and picture on the right, whereas component pairs B and D have text on the right and picture on the left. Pattern POS locator 253 may detect such a pattern based on component pairs having specific types and properties, but with the horizontal distance being one of two options (negative or positive numbers having the same absolute value) in each of the component pairs. Pattern POS locator 253 (in the example of 2-member patterns which may be unified later), may scan all components in the super-node and for each component; locate its closest neighbors on all four sides of the component. Pattern POS locator 253 may include neighbors which overlap the component up to a given specified threshold limit. Pattern POS locator 253 may then save a list of relationships between components and their neighbors and then scan the generated list of relationships and select pairs of relationships which are similar according to the following attributes: the components have the same types (e.g. a component [pic,txt] is similar to another component [pic,txt]), the components have the same direction (including reversed directions if switched patterns are supported and similar distance (subject to a given threshold for difference).

It will be appreciated that two components in a selected relationship should have different types—otherwise a set of four components of the same type arranged in a square would generate two conflicting sets of similar relationship pairs. For example as is illustrated in FIG. 23 to which reference is now made, the four picture components may be divided into pairs horizontally (pair associations H1, H2) or vertically (pair associations V1 and V2).

Pattern POS locator 253 may scan the list of selected relationships and combine them into sets (e.g., if r1==r2 and r2==r3, it may create the set [r1,r2,r3]). Pattern POS locator 253 may also remove duplicates. It will be appreciated that a single set of patterns (e.g. a set of multiple [txt,txt,pic] component sets) should be handled together.

Predefined POS locator 254 may detect partial order sets which are created based on specific hints which may be provided by the application designer or within the original application template. Such hints may take a number of forms. Specific composite components which include predefined partial order system hints, such as a “picture +text caption” component may include the coupling of the two into a predefined partial order set. Another hint may be the explicitly specified association of arbitrary components in the page or a mobile-related association derived from other forms of association available in a visual design system such as grouping for editing, as many visual design systems have the ability to associate components in groups so they can be moved, resized or otherwise modified together. Another association may be dynamic layout anchors since visual design systems may support dynamic layout anchors (explicitly specified or automatically created from the layout definition). Such anchors may serve additionally as hints for partial order set creation. Yet another association may be templates—sets of components created from multiple instances of the same multi-component template.

It will be appreciated that Predefined POS locator 254 may provide both predefined groups and predefined partial order sets. These are different elements of the system, and predefined POS locator 254 may allow the designer to specify predefined group hints (used for grouping components into a virtual super-node) as well as predefined partial order sets/ordering hints (used to guide the ordering process).

ESI-based POS locator 255 may detect the automatic creation of partial order sets based on the ESI (if available). In particular, ESI-based POS locator 255 may associate together (into one partial order set) components based on information collected from previous editing sessions such as sets of components which have created using duplication or copy and paste, sets of components which have been grouped together and edited together (e.g. when the visual design system only support ad-hoc grouping for editing which is not preserved in the database) and sets of components which have been edited in sequence.

Once orderer 240 has created a basic order and POS locator 250 has determined any partial order sets, order integrator 245 may integrate the basic order and the detected partial order sets to create a merged modified order (which is a total order for all involved elements), resolving contradicting partial order sets along the way.

It will be appreciated that some of the elements of basic orderer 247 may not to create a complete order between all components, but rather may divide the page/super-node into page sections which fit into the allowed width. This may be relevant when there is a need to maintain the basic structure, e.g. when converting an application to a device (e.g. table, large display) having a width similar to or larger than the desktop display. In this scenario, a complete decomposition into components arranged on a line might destroy the basic underlying component arrangement, and minimal “slicing” might be visually superior. In order to do this, the elements of basic orderer 247 may be modified so to work on page sections (which still fit into the available width) rather than separate components.

Basic orderer 247 may then use this information as a guideline so that page sections which are connected via substantial POS connections are not sliced.

It will be appreciated that super-node creator 230, basic orderer 247 and POS locator 250 may further create results which contradict each other. For example, one of the sub elements of POS locator 250 may generate a specific partial order set definition involving some elements, and another element may generate a different and contradicting partial order set definition. Order integrator 245 may merge results from the different elements and may also resolve any conflicts in order to create a single output.

It will be further appreciated that in order to resolve such conflicts, super-node creator 230, basic orderer 247 and POS locator 250 may all use a quality score. For example, a design based on explicit designer requests may typically have the maximal quality score, as it can be assumed that the designer is fully aware of the composition of his design. It will be appreciated that super-node creator 230, basic orderer 247 and POS locator 250 may all check their scores against quality scores held by scorer 500 which may provide for each generated result a certainty score of how much the element is certain about the correctness of the specific result based on the analyzed parameters.

Order integrator 245 may collect the results from basic orderer 247 and POS locator 250 and attempt to integrate them. It will be appreciated that results which do not contradict each other may simply be combined. Results which do contradict each other may require order integrator 245 to select which one to use. This may be done according to a calculation of the combined quality and certainty scores for the particular result. Results may be discarded if they do not meet a given (optional) certainty threshold.

Order integrator 245 may also take into account additional information such as results which are defined over components residing in a template which may have a higher certainty than results which only include components defined in the current page (e.g. due to the templates being better designed than regular pages). It also may take into account results which may be similar to results found in previous pages or super-nodes that have been handled before and therefore may be assigned a higher certainty.

Order integrator 245 may be extended so to learn the structure of pages created by a given designer, possibly using feedback from that designer to rate element results.

It will be appreciated that a particular element may return a set of results which should be implemented together or not at all. For example, pattern POS locator 253 may find a repeated pattern of components. Such a pattern should be used for all components involved, or not at all.

Once the components have been ordered accordingly, placer 270 may then place the components and any automatically-added components (as described in more detail herein below) in their appropriate position in the page. It may place the ordered elements as needed on component lines so to fit into the available width according to the determined total order and allowed space. It will be appreciated that the available width may be defined by the width of the page super-node, minus any predefined margins and other constraints, such as reserved spaces. For example, given the main page width is 320 px, the margin is 10 px for left and right, and no reserved spaces, then the available width of the main page super-node would be 320−(2*10)=300 px. A page super-node that is contained in the main page super-node and that takes the maximal available width, would have the available width of 300−(2*10)=280 px etc.

Placer 270 may apply layout hints attached to the component as part of the desktop layout configuration if marked as “retain in mobile layout configuration”. Such components may function similarly to automatically-added components, in that they become part of the container basic structure, which may drive the component line building, rather than being part of the component lines themselves.

Placer 270 may then create line breaks according to explicit hints (e.g. “put this group/POS on a separate line”) created by super-node creator 230 and orderer 240. When an added component exceeds the available width (taking reserved spaces into account), placer 270 may try to keep component groups together, i.e. if needed create a line break before a group so that entire group would fit on the same component line. Placer 270 may avoid adding a line break so to break between components having a semantic relationship (as detected earlier, e.g. by the POS locator 250).

Placer 270 may also apply width-reduction means to each element according to its type. Width reduction means may include modifying components which may be adapted (e.g. text components) according to the component type—including re-scaling, font size change, text re-flow etc. Width reduction may also use the prescribed handling method for each virtual super-node according to its type. These width-reduction means may also include transformations similar to those performed by component adjuster 227 (as a pre-processing stage)—which may now be performed with the added information about the final position and size of the components in the mobile layout configuration. Placer 270 may also perform width enlargement, e.g. to enlarge a component that was placed alone in a component line

Placer 270 provides specific resizing means for specific element types. For example, placer 270 may resize super-nodes representing text over image groups (as located by the text over image group locator 234) by using the background image as a virtual container. Next the text is resized in order to reach the desired height and width. This includes font size mapping and text re-flow which might change the text component aspect ratio (e.g. making a longer text component with larger characters inside) as is illustrated in FIG. 6 to which reference is now made. As is shown, when moving from scenario 1 to scenario 2, the font size is increased while the field width has been reduced—requiring a text re-flow. Text over image group locator 234 may also resize the group when the background image is resized to the next text size—typically changing the aspect ratio.

It will be appreciated that this could cause a “visual accident” if the picture has an actual content which would not look well when the aspect ratio is modified (e.g. a picture of a person) such as is illustrated in FIG. 7 to which reference is now made. Text over image group locator 234 may attempt to solve this problem by checking the image content to see if it contains detailed information or by preserving the internal aspect ratio of the image by zooming and clipping the image instead of re-sizing.

Some components have a degree of autonomy in performing their own resizing. For example third party application components (which may support multiple variants having different display sizes) and list applications (which may have multiple view associations). Such components perform their own resizing, based on a target size provided by placer 270.

Placer 270 may also resize/repeat the decoration image as needed to fit the new page size. If the page exceeds a given length parameter, placer 270 may possibly create a page-internal navigation menu and add it as a separate menu to the page, or to any of the existing unified menus as appropriate.

Placer 270 may re-scale both height and width, keeping the aspect ratio of the component. Some components may retain their height and only change their width (e.g. galleries which are modified to use fewer columns). Components which have to use a specific height when rescaled (e.g. map component which have internal scrolling and must thus leave margin above and below them for page scrolling instead of map scrolling) may be handled appropriately. It will be appreciated that width decrease may be handled in the same manner.

Placer 270 may also apply width reduction/enlargement processes to components as well as recursively to super-nodes and their descendants. The processes may include resizing of the actual component, text font-size mapping, text re-flow and text reduction by splitting it into visible parts and “show more” extensions (which are only displayed when requested). Other processes may include switching components to “lighter” mobile versions, modifying component parameters to change their width. Processing may also include resizing components to reflect the actual size used.

Once placer 270 has placed the pertinent components in their correct positions within the mobile configuration layout, post processor 202 may handle any final layout adjustments.

Automatically added components inserter 281 may insert automatically added components into the new mobile layout configuration such as system menus or other mobile related widgets which may be added to all or some converted applications (in all or some of their pages). Such inserted automatically added components may also include (for example) advertisements and/or other promotional material. Such inserted automatically added components may be required (i.e. always insert them) or optional. In the latter case they may be inserted conditionally—based on parameters or combination of parameters such as (for example) user type or profile (e.g. insert a specific automatically added components for all users in Europe) or per mobile device type or profile (e.g. insert specific automatically added components for all android-based users having screen size of 480×320 or larger). They may also be based on specific page parameters or conditions (e.g. insert specific automatically added components for pages which do not contain a picture component of size 320×200 or larger), user behavior or application use history, availability of space to insert the automatically added components, any designer defined parameters and website building system defined parameters.

It will be appreciated that automatically added components inserter 281 may place such automatically added components in a number of ways. It may place them as absolute-position automatically added components which are inserted in a given position in the page or in specific containers (i.e. super-nodes)—typically using a reserved space as described herein below. Automatically added components inserter 281 may also insert them as relative-position automatically added components inserted in a given position relative to some page elements (e.g. pre-defined components, components located via query etc.) This is similar to the insertion of components at the mobile layout configuration level as described in more detail herein below.

Automatically added components inserter 281 may also add automatically added components as remaining-space automatically added components which are inserted based on space availability in the layout. Since components are sometimes moved to a separate component line, in some cases there are additional vacated spaces in the mobile layout configuration compared to the desktop layout configuration which may be used for such automatically added components.

It will be appreciated that in the case of absolute position automatically added components, automatically added components inserter 281 may be required to reserve specific space on the mobile display area for these elements—carving out the area from the rectangular mobile display area allocated to the page/super-container and reserving it. Thus, the area used for component lines may be non-rectangular. Reference is now made to FIG. 24 which illustrates how the area remaining in the main container C after carving-out the reserved area for automatically added components A and B is a non-rectangular shape.

It will be appreciated that the pertinent visual design system may also support dynamic layout including the use of explicit (designer-specified) anchors as well as implicit (automatically created) ones as described in US Patent Publication 20130219263 entitled “A SERVER BASED WEB SITE DESIGN SYSTEM INTEGRATING DYNAMIC LAYOUT AND DYNAMIC CONTENT”, published 22 Aug. 2013 and assigned to the common assignee of the present invention. Thus, the visual design system may have anchors (both implicit and explicit) which may be broken due to the re-arrangement process inherent to the adaptation to mobile device width.

Once the components have been placed accordingly, dynamic layout coordinator 284 may modify any existing dynamic layout anchors according to the new layout. For example, dynamic layout coordinator 284 may remove the anchors for components which have been moved in such a way as to make the anchor irrelevant as is illustrated in FIG. 3 to which reference is now made. As is illustrated, the horizontal anchor which exists between components A and B in scenario 1 should be broken when B is moved to be below A in scenario 2.

Dynamic layout coordinator 284 may also retain the anchors which may be retained (e.g. component sets which were not modified, inside containers which were not modified etc.) Dynamic layout coordinator 284 may also modify the anchors which may be retained but would need their parameters modified (e.g. anchor length change for components which were moved closer together). Dynamic layout coordinator 284 may also create new dynamic layout anchors between components placed in proximity (e.g. one above the other)—including both component-to-component and component-to-container anchors. This may be based on the automatic anchor creation criteria built into the system (e.g. based on amount of overlap and distance between components).

It will be appreciated that the newly created anchors are important since the mobile-adapted application may still be an absolute-coordinates visual design application. Thus, the mobile-adapted application may have to be dynamically modified due to changes such as modifications to the content of a component such as the amount of contained text. These may include changes originating from an external source (e.g., external data feed, concurrent user activity, switching between data records in a list application). Dynamic layout coordinator 284 may have to implement changes to further adapt to small modifications in the screen size of the target mobile device. Thus dynamic layout coordinator 284 may modify the anchor structure and may also implement a new anchor structure for final adaptation.

It will be appreciated that the resulting alternate layout (including the grouping, POS and ordering information) may be stored in database 50 together with the application or separately for further use, or as the basis for further modifications as described herein below.

Displayer 290 may display the newly modified layout on the target platform.

As discussed herein above, layout reconverter 300 may merge modifications performed on a given desktop layer configuration and modifications to its parallel shadow mobile layout configuration to create an updated mobile layout configuration.

It will be appreciated that once initial layout converter 200 has run, two (or more) versions of the application exist—the desktop (main) layout configuration and the one (or more) mobile (shadow) layout configuration. It would be appreciated that when referring to a mobile (or shadow) layout configuration, we may be referring to other additional configurations such as these related to tablets, wide-screen display etc. A designer may then apply (separate) modifications through the pertinent visual design system editing tool to both the desktop and mobile layout configurations, creating a modified version of each. The visual design system may provide a single editor for both versions (possibly constrained when editing a mobile layout), or separate desktop and mobile site editors.

Since the mobile layout configuration is derived from the desktop layout configuration, initial layout converter 200 may apply modifications (such as addition and deletion of pages and components as well as component content change) made to the desktop layout configuration to the mobile layout configuration. Reconverter 300 may merge any desktop layout configuration modifications and any separate mobile layout configuration modifications into the modified mobile layout configuration in order to create a final mobile layout configuration to be displayed to mobile users, keeping the content of the mobile layout configuration better coordinated with the desktop layout configuration. It will be appreciated that this procedure may be complicated since (for example) if a component is added to the desktop layout configuration which should also be added to a modified mobile layout configuration (whose components may have been moved, resized or deleted including being moved from, into or between containers) reconverter 300 has to determine the appropriate position to place the added component within the modified layout configuration as well as the layout to be used for the added components themselves.

It will be appreciated that in this scenario, any mobile layout configuration modifications are not merged back into the desktop layout configuration. While editing the desktop site might change the mobile site, editing the mobile site will not affect the desktop site. It will also be appreciated that pure layout changes (i.e. changes in position and size) made to either the desktop layout configuration or to the mobile layout configuration may not affect the other layout configuration—as opposed for example to component content changes or removal (which affect the mobile layout configuration if performed in the desktop layout configuration). It will be further appreciated that system 100 may limit mobile editing so that components may be removed (or hidden) from the mobile layout configuration but cannot be added or have their content edited—except possibly for some mobile oriented components as discussed in further detail herein below. Thus (for example), a mobile editor may not allow a component in the mobile layout configuration to be moved from one page to another, since this may entail adding components to a page.

Reference is now made to FIG. 25 which illustrates the elements of reconverter 300. Reconverter 300 may comprise a page deleter 310, a page adder 320, a component deleter 330, a component adder 340, a component modifier 350 and a mobile handler 360. Component adder 340 may further comprise an added component identifier 342, a parent/predecessor searcher 344 and a mobile layout adder 346 as is illustrated in FIG. 26 to which reference is now made. The functionality of these elements is described in more detail herein below.

Reference is now made to FIG. 27 which illustrates the functionality of layout reconverter 300. Initial layout converter 200 may convert DP1 (desktop page 1) creating the resulting mobile layout configuration MP2. A designer may then edit MP1 using the local mobile editor 560 to create MP2. After this, the designer may edit DP1 using the local desktop editor 550 to create DP2. Layout reconverter 300 may then create an updated mobile layout configuration integrating the changes made in DP2 as well as in MP2.

It will be appreciated that this automatic integration may only be relevant if the desktop editing phase (DP1=>DP2) is performed after the mobile editing phase (MP1=>MP2) (as shown in FIG. 26). In the reverse case (the desktop editing is performed first), initial layout converter 200 may automatically reconvert the modified desktop layout configuration DP2 to mobile layout configuration MP2 when the editing of DP2 is completed. Therefore the designer would be performing the MP1=>MP2 changes on the already modified MP1, requiring a manual integration of the changes during the (later) mobile edit

It will be further appreciated that the aim of running the sari e site on multiple platforms is having the same content in both sites as much as possible. However, as discussed herein above, not all desktop components are mobile compatible due to (for example) the use of drop down menus and vertical lines.

It will also be appreciated that a major requirement for web-based interactive applications (such as web sites) is search-engine compatibility. Therefore both desktop and mobile layout configurations should present the same general page structure to the search engine, and the same pages should be available in both layout configuration. Otherwise, a page might be indexed by a search engine spider reading the desktop layout configuration pages, but would not be available when a user reached it directly via a search engine on a mobile device (generating a “missing web page” or similar error condition). In the reverse case, a page available in the mobile layout configuration but not in the (indexed) desktop layout configuration would not be found by the search engine. Some search engines might support different page structures for different versions of the site, but the use and availability of such an option is an internal property of the specific search engine and cannot be relied upon.

It will be appreciated that although desktop and mobile sites may have different appearances, they may share the same data whenever possible. Otherwise, a user might reach a mobile page by searching (for example) for a given text phrase—which exists in the desktop page content—only to find the mobile page is different and does not contain the searched for phrase. In particular, the mobile page should not contain a component, which does not exist on the desktop page. Some exceptions may apply, such as adding a new mobile-adapted menu to replace existing menus, or deletion of text components in the mobile layout configuration only.

It will also be appreciated that occasionally, a designer may need to make specific modifications to the mobile layout configuration to make it intentionally different from the desktop layout configuration in contradiction with search engine policy. For example, a system displaying a feed of new item summaries might display longer summaries on the desktop layout configuration and shorter summaries on the mobile layout configuration. The designer may certainly modify component size, position and ordering, and such changes should not generally affect search engine handling of the mobile site.

In order to resolve this conflict, or at least ameliorate it, reconverter 300 may limit the scope of modifications the designer may perform on the mobile layout configuration. For example, the designer may be limited to modifications which may only affect mobile layout configuration layout but not the actual content. Such a limitation may be enforced by the systems mobile editor before the various modifications are handled by reconverter 300.

Desktop layout modifications may include adding pages, removing pages; adding components, removing components; changing attributes of components, moving and resizing components and changing the content of component (e.g. the text inside a text paragraph). As noted above, pure layout changes (e.g. moving and resizing) do not affect the mobile layout configuration.

As discussed herein above, a visual design system may have internal unique ID for each component which does not change when a component is modified or moved. It will be appreciated that reconverter 300 may use these ID's to track components which have been modified from one version of a page to another. Since reconverter 300 assumes that all modifications are performed through the visual design system editor and are fully tracked, when evaluating a modified version, reconverter 300 may have (for each modified component) a detailed list of the modified attributes and the value changes (e.g. for component X the style was changed from S1 to S2 and the width from W1 to W2).

When an existing desktop page is removed, page deleter 310 may also remove the page from the mobile layout configuration. It will be appreciated that this implies that specific mobile layout configuration modifications made to this page are lost. The only way to restore them is through “undo” functionality (e.g. session level undo during the current session or version revert at the database level).

When a new page is added to the desktop, page adder 320 may instruct initial layout converter 200 to convert the entire page to a mobile layout configuration as described herein above. It will be appreciated that the converted page may appear in the appropriate position in the mobile layout configuration. Page adder 320 may update any mobile navigation menus to include the newly inserted page.

When a component is deleted from an existing desktop layout configuration, component deleter 330 may delete the corresponding component from the corresponding mobile layout configuration. Component deleter 330 may also instruct mobile handler 360 to update the mobile layout display, closing gaps in a given component line or deleting an entire component line as described in the description of mobile handler 360 below.

It will be appreciated that when one or more new components are added to a desktop page, the new components may create a new hierarchical component order for the modified desktop page, including the newly added components. For changes to the desktop layout configuration only when no change was made to the mobile layout configuration, reconverter 300 may instruct initial layout converter 200 to reconvert the desktop page as there is no need for the merging of the desktop layout configuration and the mobile layout configuration modifications.

It will be appreciated that component adder 320 must locate the appropriate place in the mobile layout configuration to add a component which was added to the layout configuration. This task may be especially complex as components could have been moved (including between containers), resized, re-arranged or removed in the mobile layout configuration. Furthermore, a desktop layout configuration component may have been moved or removed. Therefore component adder 320 must find the appropriate position to add components—according to either predecessor and/or parent, one of which will always exist.

For each component X added to the mobile layout configuration, added component identifier 342 may identify the added component (e.g. through component ID comparison, editing session history or the underlying database access). Added component identifier 342 may instruct component filterer 221 to operate its component filtering function so as to determine if the component is suitable for mobile display at all (e.g. is not an empty component, non-mobile compliant type etc.).

Parent/predecessor searcher 344 may then perform a parent/predecessor search in order to locate the nearest predecessor component PD(X) and/or parent component PT(X), which are the closest to added component X, and which also exist in the mobile layout configuration (i.e. they were not deleted from the mobile layout configuration explicitly or due to their type). The predecessor is determined according to the order specified by orderer 240—taking the nearest predecessor which appears in the mobile layout configuration. The parent is determined according to the page container hierarchy—taking the nearest level parent container component which appears in the mobile layout configuration. It will be appreciated that some components may have been deleted (or hidden) in the mobile layout configuration manually and would thus be excluded from parent/predecessor search. It will also be appreciated that the nearest predecessor component may be null, e.g. if X is the first component in its page/container (when excluding components not visible in mobile) it has no predecessor. It will be further appreciated that a parent component however, cannot be null, as the search will always reach the containing page which serves as a top level container. Once parent/predecessor searcher 344 has determined the predecessor and parent (if available), mobile layout adder 346 may place the added component X after the nearest predecessor component in a position bearing the same relationship to the predecessor/parent components in the mobile layout configuration as X was to the same predecessor/parent components in the desktop layout configuration, and push down all the components that are after the predecessor.

It will be appreciated that when handling multiple added desktop layout configuration components (X[1], X[2], . . . ) there are two main methods to implement the procedure above—the one-by-one method or clustered method.

In the one-by-one method, the added desktop layout configuration components X[i] are handled according to their order (as defined, for example, by orderer 240). For each component X[i], parent/predecessor searcher 344 performs a predecessor/parent search which takes into account the preceding added components X[j] (1<=j<i). Thus, each component X[i] is handled taking into account the other added components.

In the clustered method, parent/predecessor searcher 344 may perform the parent/predecessor search separately for each of the added desktop layout configuration components X[i], ignoring the existence of other added desktop layout configuration components X[j] (for j≠i). Therefore parent/predecessor searcher 344 performs a parent/predecessor search for each X[i] as if it were the only component added to the desktop layout configuration. Once this is done, components X[i] are clustered according to a common combination of predecessor component PD(X[i]) and parent component PT(X[i]). The components in each cluster may be grouped together as a single virtual page (e.g. as a virtual super-node, possibly containing other super-nodes inside it). Component adder 340 may then instruct initial layout converter 200 to run on each such virtual page separately, running a full conversion process recursively (including the pre-processing, analysis, anchors etc. as described herein above). The process may convert each virtual page into a converted virtual page which mobile layout adder 346 then places as a unit into the mobile layout configuration based on the common predecessor and parent for the cluster.

Reference is now made to FIGS. 28A, 28B, 28C, 28D, 28E, 28F and 28G which illustrate different component addition and editing scenarios, and how they are handled by component adder 340.

Reference is now made to FIG. 28A which shows a desktop page DP1 containing two components, A and B. Initial layout converter 200 may convert this page into a mobile page MP1. If a new component X is then added between A and B in DP1 so to create page DP2, parent/predecessor searcher 344 performs a parent/predecessor search for X, finding that X follows A inside the containing page (in the desktop layout configuration). Thus, mobile layout adder inserts X after A in the containing page in MP1 so as to create MP2.

In another scenario, as is illustrated in FIG. 28B to which reference is now made, mobile page MP1 is edited via the mobile editor to exchange the vertical positions of A and B, creating MP2. After this edit, the designer then inserts the new component X between A and B in the DP1 to create page DP2. Component adder 340 may reconcile the changes made to DP2 and MP2. Parent/predecessor searcher 344 may perform a parent/predecessor search for component X, finding that X follows A (its nearest predecessor) inside the containing page (its nearest parent in the desktop layout configuration). Thus, mobile layout adder 346 may insert X into MP2 in the containing page following component A (which is now below B rather than above B), creating the updated mobile page MP3.

In yet another scenario, as is illustrated in FIG. 28C to which reference is now made, mobile page MP1 is edited via mobile editor 560 to remove (hide) component B which resides below A and above C (creating MP2). DP1 is then edited via desktop editor 550 to insert component X after B and before C (creating DP2). Component adder 340 may then reconcile the changes made to DP2 and MP2. Parent/predecessor searcher 344 may perform the parent/predecessor search for the added component X and may determine that the predecessor of X is A instead of B, since B is marked as “removed in mobile”. Thus, mobile layout adder inserts X after A (and before C) in MP2 to create MP3.

In yet another scenario, as is illustrated in FIG. 28D to which reference is now made, page DP1 contains a container A which contains an internal container B and another component D—all of which are converted into MP1. Mobile page MP1 is then edited via mobile editor 560 to remove (hide) the internal container B (creating MP2). DP1 is then edited via the desktop to insert component C inside the internal container B (creating DP2). Component adder 340 may then reconcile the changes made to DP2 and MP2. In this scenario when performing the parent/predecessor search for the added component C, parent/predecessor searcher 344 may determine that the parent of C is A instead of B, since B is marked as “removed in mobile”. Parent/predecessor searcher 344 may further determine that C has no predecessor, since it is the first component in A (disregarding B). Thus mobile layout adder 346 may insert C inside A (at the top and before D) in MP2 to create MP3.

In yet another scenario, as is illustrated in FIG. 28E to which reference is now made, mobile page MP1 is edited via mobile editor 560 to exchange the vertical positions of A and B, creating MP2. Later, a designer inserts two new highly-overlapping components X1 and X2 between components A and B in DP1 to create page DP2. Component adder 340 may reconcile the changes made to DP2 and MP2 in one of two possible ways, generating either MP3 (for the one-by-one method) or MP4 (for the clustered method).

It will be appreciated that if the one-by-one method is used, and as X2 is geometrically positioned “later” than X1, parent/predecessor searcher 344 may perform the parent/predecessor search for X1 first, determining that A is the predecessor of X1. Parent/predecessor searcher 344 may then perform the parent/predecessor search for X2 (taking X1 into account), and may determine that X1 is the predecessor of X2. Thus, mobile layout adder 346 may then place component X1 after A and place component X2 after X1 thus creating MP3. It will be appreciated that in this method, components X1 and X2 are analyzed and moved as separate entities and therefore their compositions are separated.

If the clustered method is used, parent/predecessor searcher 344 may perform the parent/predecessor search for both X1 and X2 without regarding X1 or X2 (for the search), and may determine that both have the same parent (the main page) and the same predecessor (component A). Thus, component adder 340 may cluster X1 and X2 together, may create a virtual super-node containing X1 and X2, and may instruct initial layout converter 200 to create a mobile ready version of the composition of X1 and X2. It will be appreciated that this converted composition would be placed below A creating MP4. Since X1 and X2 were highly overlapping, it is likely they would be resized as to preserve their composition (as described above).

In yet another scenario, as is illustrated in FIG. 28F to which reference is now made, an original desktop page DP1 containing two components (A and B) is edited via desktop editor 550 by adding 4 new components—two pairs of semantically-related text and image components (T1/I1 and T2/I2)—creating a new page DP2. If DP2 is converted to mobile using the one-by-one method (as described herein above), parent/predecessor searcher 344 may determine that T1 is the predecessor of T2. Thus, the generated (vertical) sequence of components would be A-T1-T2-I1-I2-B (as shown in MP2)—breaking the text caption to image connections. If DP2 is converted to mobile using the clustered method (as described herein above, parent/predecessor searcher 344 may determine that T1/T2/I1/I2 all have the same predecessor (A) and parent (main page). Thus, mobile layout adder 346 may cluster these 4 components into a new virtual page and may run initial layout converter 200 on them. Since T1 is semantically related to I1, and T2 to I2, these pairs would be kept together. Thus, the created (vertical) sequence would be A-T1-I1-T2-I-B (as in MP3)—preserving the semantic information.

In yet another scenario, as is illustrated in FIG. 28G to which reference is now made, desktop page DP1 contains three components (A, B and C) and is converted to mobile. The resulting mobile page MP1 is edited via mobile editor 560, removing component C and exchanging the order of A and B to create MP2. DP1 is then edited via desktop editor 550, adding two overlapping components X1 and X2 between B and C and an additional component X3 below C to create DP2. Component adder 340 is configured to use the clustered method and therefore all three added components (X1, X2 and X3) are clustered together, since the parent/predecessor searcher 344 has determined that B is the predecessor of all 3 new components (since C was removed in the mobile version). Thus mobile layout adder 346 may place all 3 new components below B and above A, retaining the composition of X1 and X2 (as shown in MP3).

It will be appreciated that the placement of added components by mobile layout adder 346, may be implemented in a limited version in which components are added to the desktop version or are only added to the mobile version vertically between two vertically-separate components.

In another embodiment, component adder 340 may add a “cluster” of added components anywhere inside a “line” of components laid out in the mobile version, so not to limit the insertion of the new components to be below a given component in the mobile version.

In yet another embodiment, component adder 340 may attach an added component B to the desktop layout configuration container that contains it rather than having it as a predecessor. It will be appreciated that in this scenario, component B remains attached to the container C containing it, and is placed after the last element in C which exists in both desktop and mobile layout configurations and which precedes component B. This approach may be used unless the container C (and the matching super-node) is empty, or is hidden in the mobile layout configuration.

In yet another embodiment, component adder 340 may add components to the mobile layout configuration by dividing the mobile layout configuration horizontally into segments, and adding the added component or component cluster after the segment containing the predecessor instead of directly after the predecessor.

It will be appreciated that when there are changes to attributes such as style, font or text size of a desktop component including general property changes, such as changing the number of rows or columns in a gallery component, component modifier 350 may modify the components in the mobile layout configuration. Since the mobile layout configuration defines a visual application subject to dynamic layout, it can accommodate such changes and re-adjust component sizes and positions accordingly.

It will also be appreciated that while changes to the size and position of a desktop component affect the desktop layout configuration, they do not affect the mobile layout configuration unless the mobile layout configuration is explicitly re-generated as described herein below. This is allowed because system 100 may allow for differences in appearance (design) between the multiple layout configurations, as long the content does not change.

When there are changes to the data/content of a desktop component, component modifier 350 may update the mobile layout configuration accordingly. Similar to attribute modification, such data change may cause some re-formatting of components on the mobile layout configuration, handled using dynamic layout.

It will be appreciated that any modification to the mobile layout configuration may be performed by a user typically via a specialized GUI display (mobile editor 560) or mobile modifications display with the mobile preview layout configuration. Such a mobile editor may only allow the designer to perform certain operations, such as adding mobile-specific components, removing components (hide them), moving components or modifying components only. Thus mobile editor 560 may interact with mobile handler 360 which handles mobile-side only changes.

Mobile handler 360 may use a number of methods for placing added (mobile only) components. Mobile handler 360 may allow the insertion of a new component only between two components on a component line or on a new component line following or preceding an existing one as is illustrated in FIG. 29 to which reference is now made. A new component X may be inserted between A and B or a new component Y may be inserted below P and above A, B and C. It may also insert line breaks before/after added components.

The inserted component (either X or Y) in this case may be anchored to the preceding component (or container) and may be re-inserted in that position if the mobile layout configuration is re-generated and “preserving added mobile components” was requested. If the anchor is not available (e.g. the anchored-to component was removed in desktop layout configuration), mobile handler 360 may search for the closest previous component or container as noted above for adding components to the desktop layout configuration.

Mobile handler 360 may also allow placing the new (mobile only) component X in an arbitrary position in the page. Mobile handler 360 may then search for an anchoring component by searching for the component with the largest intersection with X. If no such component is available, mobile handler 360 may look for the closest neighbor (on all 4 sides) based on the weighted average of distance and overlap and by using distance and overlap thresholds. If no such component is found using the container containing X, then mobile handler 360 may use the page start as an anchor which may be defined as the anchor in term of distance and offset from the closest edge of the anchor.

In order to avoid non-compliance with search engine policies, reconverter 300 may avoid this offering this operation at all. Alternatively, reconverter 300 may be limited to adding components which do not affect the search engine view of the page, such as decoration type components (e.g. lines, decoration shapes), components without content (e.g. page-internal navigation menus which don't add extra menu entry information), components with content which is not provided to search engines (e.g. background images) and to components which are only relevant for the mobile environment (such as buttons providing functionality for placing a phone call, sending a text/MMS message, navigating to a given location or switch to desktop site version).

It will also be appreciated that mobile editor 560 may also place non-mobile-recommended components initially in the “removed component” display, and require a second step to actually incorporate them into the mobile layout configuration.

The added components may be listed in the mobile modifications display as discussed herein below, so to make it easy to remove specific add-to-mobile-only components.

Mobile handler 360 may also remove a component from the mobile layout configuration (which may be implemented by actually removing the component or just hiding it). It will be appreciated that when a component is removed from the mobile layout configuration, mobile handler 360 may not rearrange the components in the same line. When an entire component line is removed, mobile handler 360 may move the components below up as close as possible as is illustrated in FIG. 30 to which reference is now made. If any of components A, B or C (but not all three) are removed, the remaining components in the line (A, B or C) are not affected or moved. If all three components (A, B and C) are removed, component Q and the components following it will move up to near component P. The removed component(s) may be listed in the mobile modifications display as discussed herein below, so as to make it easy to re-insert the hidden components into the application at a later stage if required.

It will also be appreciated that components in the mobile layout configuration may be moved by a user via the regular_(—) editing visual data system GUI. Mobile handler 360 may retain the modifications until the page is re-created and may list them in the mobile modifications display as discussed herein below, so to make it easy to undo specific changes.

Mobile editor 560 may also allow components to also be moved “out” (right or left) of the mobile narrow display strip. In this scenario, the component may retain a certain minimal horizontal overlap with the “strip”, and may be displayed clipped to the strip size. Otherwise, this option may become equivalent to the “hide component” option. This option may be used for showing only part of a component/container or for temporarily placing components to the side in order to help in re-arranging components in the mobile configuration;

Mobile editor 560 may also allow a user to selectively change component attributes, properties and styles in a mobile layout configuration. Mobile editor 560 may mark such changed attributes as “changed in mobile” so that a change in a specific attribute in the desktop layout configuration may not affect (and override) the change made to this attribute in the mobile layout configuration.

One particular change which may desirable as a mobile layout configuration specific change is font size. This may be needed if component adjuster 227 generates a size different to that which the designer may require. Thus, a specific font size change (as a factor to be applied on top of the font size generated by the initial layout converter 200) may be added and applied to the displayed text on a per-field basis. Mobile editor 560 may change font size using a local “scale factor” attribute, and (for example) buttons for 5% font size increase/decrease which may affect this attribute. It will be appreciated that mobile editor 560 may still limit the new font sizes to a given range of mobile-friendly font sizes. Any attribute modification (including font size change) may be listed in the mobile modifications display as discussed herein below.

As discussed herein above, reconverter 300 may provide a separate GUI displaying the list of modifications specific to a given mobile layout configuration (e.g. components added, components removed and components modified). This may useful in order to view the specific mobile layout configuration modifications and distinguish between them and other layout modifications made by initial layout converter 200. It may also be useful in order to review different changes made to different mobile layout configurations and to be able to undo specific mobile layout configuration modifications such as to re-insert a specific “removed” component.

It will be appreciated that such a display may be divided according to the page in which the modification was performed, i.e. current pages, another page(s) or any template or master page or according to the modification type, i.e. insertion, removal or modification of component.

The display may further be used to sort these modifications, e.g. according to timestamp, location in the page or affected component type. Mobile editor 560 may support an undo operation for a selected set of modifications. Mobile handler 360 may then undo any modifications e.g. re-insert removed components are reverse component position modification.

Reconverter 300 may further support mobile layout configuration regeneration options. When activated, reconverter 300 may instruct initial layout converter 200 to run again on the underlying desktop layout configuration (which may have been modified since initial layout converter 200 was last run), and the mobile layout configuration specific changes may be possibly re-applied.

It will be appreciated that regeneration may be applied to pages which should be re-generated (current page, specific pages, entire application) and mobile layout configuration changes which should be re-applied after the mobile layout configuration is re-generated. These could be selected by categories (such as component hiding only), include specific selected modifications or include all modifications. It will also be appreciated that if regeneration run is performed without re-applying mobile layout configuration changes to a given page or pages, the relevant mobile layout configuration changes are discarded.

Displayer 290 may display the new updated mobile layout configuration as described herein above.

The system as described above may be integrated with the pertinent website building system in a number of ways. For example, the system 100 could be integrated into the actual website building system code—either entirely in the client side, entirely in the server side or both. System 100 may also be operated on the same server platform as the website building system or on a separate standalone server or server set. System 100 may be operated on-line (whenever a website building system page is viewed), off-line (so as to create stored converted versions of website building system) or in a combination (with some stages activated off-line and others on-line). It could operate directly on the website building system data structures or provide an interface (such as web service) called by the website building system so as to isolate system 100 from the website building system content.

It will be appreciated that in different embodiments of the present invention, different elements of system 100 may divide their functionality in different ways and may perform the above mentioned functionality in a different order than described herein above. It will be further appreciated that system 100 may also be partially implemented using partial functionality.

Thus a desktop layout configuration of a particular application may be suitably converted into a mobile layout configuration (or any other different sized target layouts) taking into account the relationship between components. Furthermore, after the initial conversions, modifications may be made to both the desktop and mobile layout configurations for the same page and may be reflected within a newly generated mobile page.

Unless specifically stated otherwise, as apparent from the preceding discussions, it is appreciated that, throughout the specification, discussions utilizing terms such as “processing,” “computing,” “calculating,” “determining,” or the like, refer to the action and/or processes of a general purpose computer of any type such as a client/server system, mobile computing devices, smart appliances or similar electronic computing device that manipulates and/or transforms data represented as physical, such as electronic, quantities within the computing system's registers and/or memories into other data similarly represented as physical quantities within the computing system's memories, registers or other such information storage, transmission or display devices.

Embodiments of the present invention may include apparatus for performing the operations herein. This apparatus may be specially constructed for the desired purposes, or it may comprise a general-purpose computer or a client/server configuration selectively activated or reconfigured by a computer program stored in the computer. The resultant apparatus when instructed by software may turn the general purpose computer into inventive elements as discussed herein. The instructions may define the inventive device in operation with the computer platform for which it is desired. Such a computer program may be stored in a computer readable storage medium, such as, but not limited to, any type of disk, including optical disks, magnetic-optical disks, read-only memories (ROMs), volatile and non-volatile memories, random access memories (RAMs), electrically programmable read-only memories (EPROMs), electrically erasable and programmable read only memories (EEPROMs), magnetic or optical cards, Flash memory, disk-on-key or any other type of media suitable for storing electronic instructions and capable of being coupled to a computer system bus.

The processes and displays presented herein are not inherently related to any particular computer or other apparatus. Various general-purpose systems may be used with programs in accordance with the teachings herein, or it may prove convenient to construct a more specialized apparatus to perform the desired method. The desired structure for a variety of these systems will appear from the description below. In addition, embodiments of the present invention are not described with reference to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the invention as described herein.

While certain features of the invention have been illustrated and described herein, many modifications, substitutions, changes, and equivalents will now occur to those of ordinary skill in the art. It is, therefore, to be understood that the appended claims are intended to cover all such modifications and changes as fall within the true spirit of the invention. 

What is claimed is:
 1. A converter for a website building system, said converter comprising: a receiver to receive a website page from a website building system, said page having a source layout for a source display area, said page having an object model representation of said website building system elements; a processor to determine an order and set of relationships among said elements and to create a target layout of said website page for a target display area, said target layout being based on a semantic analysis and reconciliation of said determined order and set of relationships, wherein said source display area has different attributes than said target display area; and a reconverter to merge modifications to said source layout and said target layout taking into account independent modifications made to said target layout to create an updated target layout configuration and wherein said updated target layout reflects changes made to said source layout.
 2. The converter of claim 1 and wherein said processor comprises: a preprocessor to analyze object properties of said elements and to modify their suitability for presentation on said target display area; a super-node creator to locate groups of said elements which should remain together and to create a hierarchy of super-nodes based on the location of said elements and the content relationships of said elements; an orderer to determine an order for the elements within each of said super-nodes; a placer to place said elements within said target layout based on at least one of said determined order, reserved spaces and said groups; and a post processor to adjust said placed elements before display.
 3. The converter of claim 1 and wherein said elements are at least one of atomic components, single-page container components and multi-page container components.
 4. The converter of claim 1 wherein said converter is implementable on a least one of a client, a server and a third party server.
 5. The converter of claim 2 and wherein said pre-processor comprises at least one of: a template handler to modify instances of said elements in templates; a component filterer to filter said elements not suitable for said target layout; a component adapter to adapt said elements to said target layout; a component adjuster to adjust said elements to said target layout; and a component analyzer to analyze the attributes of said elements to determine their usage suitability.
 6. The converter of claim 2 and wherein said super-node creator comprises at least one of: an overlap group locator to locate groups of said elements wherein said elements are highly overlapping and to replace said group with a virtual element according to the grouping criteria; a predefined group locator to locate groups of said elements according to hints of at least one of template, application, page or elements level and to replace said group with a virtual element according to the grouping criteria; a text over image group locator to locate elements wherein said elements are text components that are overlaid over a specific background image to replace said group with a virtual element according to a grouping criteria; a scorer to determine a certainty score for the correctness of said overlap group locator, said predefined group locator and said text over image group locator; and a node creator to create a hierarchy of super-nodes based on said elements and said virtual elements.
 7. The converter of claim 2 and wherein said orderer comprises at least one of: a basic orderer to determine a sequence of said elements of said super-nodes according to a predefined order criteria; a partial order set locator to analyze at least one of the semantics, content, attributes, editing history and geometry of said elements of said super-nodes; a scorer to determine a certainty score for the correctness of said basic orderer and said partial order set locator; and an order integrator to integrate the sequence determined by said basic orderer with detected partial order sets located by said partial order set locator to create a merged modified order.
 8. The converter of claim 2 and wherein said post processor comprises at least one of: an automatically added component inserter to insert at least one of: automatically added and mobile-related elements; and a dynamic layout coordinator to perform at least one of creation, modification and removal of dynamic layout anchors wherein said anchors are adjusted according to said target layout.
 9. The converter of claim 7 and wherein said basic orderer comprises at least one of: a primary direction orderer to sequence said elements of said super-nodes according to at least one of rows and columns; a primary direction with split and merge orderer to sequence said elements of said super-nodes according to at least one of rows and columns and to track any row/column splitting and merging; and a horizontal/vertical slicer to alternate horizontal and vertical slicing of said elements of said super-nodes to create an internal tree of divisions and define a sequence of display for said elements.
 10. The converter of claim 2 and wherein said placer comprises at least one of: a hint interpreter to interpret hints attached to said elements of said super-nodes; a line break creator to create line breaks according to said hints created by said node creator and said orderer; a width reducer to reduce the width of said elements wherein said width reducer comprises at least one of a re-scaler, a font changer and a text re-flower and wherein said width reducer preserves visual design; a size adjuster to apply at least one of width and height adjustment to said elements of said super-nodes; and a resizer to resize decoration images.
 11. The converter of claim 7 and wherein said partial order set locator comprises at least one of: a cluster partial order set locator to detect a cluster partial order set wherein said elements of said super-nodes are closer in proximity compared to the regular spacing between said elements in said super-nodes, a semantic partial order locator set to detect a semantic relationship partial order set when there are specific combinations of said elements of said super-nodes of given types which are close together; a pattern partial order set locator to detect a partial order set when there are set patterns between said elements of said super-nodes; a pre-defined partial order set locator to detect a partial order set based on at least one of existing editing related grouping definitions, existing dynamic layout anchor information and the re-use of component templates for different element sets; and an editing session information based partial order set locator to detect a partial order set of said elements of said super-nodes based on information collected from previous editing sessions.
 12. The converter of claim 8 and wherein said at least one of automatically added and mobile-related elements include at least one of target device specific widgets, navigation menus, advertisements and promotional material.
 13. The converter of claim 9, said converter having a pattern partial order set locator and wherein said horizontal/vertical slicer comprises an element divider to determine the slicing direction of said elements of said super-nodes based on at least one of number of dividers, size of gaps found in the given projection direction, said located pattern partial order set and quality of alignment to axis projections in both directions.
 14. The converter of claim 5 and wherein said component filterer comprises: a remover to remove elements not suitable for said target layout display and a hider to hide elements not suitable for said target layout display.
 15. The converter of claim 5 and wherein said component adapter comprises: a modifier to modify the size and width of said elements, a uniter to unite menu elements; a content updater to update content related adaptations; a creator to create composite menus; and a character converter to convert character based graphics.
 16. The converter of claim 5 and wherein said component adjuster comprises a mapper to create font-size mapping between said source layout and said target layout.
 17. The converter of claim 5 and wherein said component analyzer comprises: an image stitcher to stitch said elements when said elements are image components into a single image; and a decoration image handler to distinguish decoration images.
 18. The converter of claim 1 and wherein said reconverter comprises: a page deleter to delete a page from said target layout when said page is deleted from said source layout; a page adder to add a page to said target layout when said page is added to said source layout; a component deleter to delete an element from said target layout when said element is deleted from said source layout; a component adder to add an element to said target layout when said element is added to said source layout; a component modifier to modify an element from said target layout when said element is modified in said source layout; and a mobile handler to handle modifications to said target layout wherein said modifications are independent of modifications to said source layout.
 19. The converter of claim 18 and wherein said component adder comprises: a parent/predecessor searcher to search for at least one of the nearest predecessor element and parent element which are the closest to an added element to said source layout; and a mobile layout adder to insert said added element to said target layout according to location of said at least one of the nearest predecessor element and parent element.
 20. A method implementable on a computing device, said method comprising: receiving a website page from a website building system, said page having a source layout for a source display area, said page having an object model representation of website building system elements; determining an order and set of relationships among said elements and creating a target layout of said website page for a target display area, said target layout being based on a semantic analysis and reconciliation of said determined order and set of relationships, wherein said source display area has different attributes than said target display area; and merging modifications to said source layout and said target layout taking into account independent modifications made to said target layout to create an updated target layout configuration and wherein said updated target layout reflects changes made to said source layout.
 21. The method of claim 20 and wherein said determining and creating comprises: analyzing object properties of said elements and modifying their suitability for presentation on said target display area; locating groups of said elements which should remain together and creating a hierarchy of super-nodes based on the location of said elements and the content relationships of said elements; determining an order for the elements within each of said super-nodes; placing said elements within said target layout based on at least one of said determined order and said groups; and adjusting said placed elements before display.
 22. The method of claim 20 and wherein said elements are at least one of atomic components, single-page container components and multi-page container components.
 23. The method of claim 20 and wherein said analyzing and modifying comprises at least one of: modifying instances of said elements in templates; filtering said elements not suitable for said target layout; adapting said elements to said target layout; adjusting said elements to said target layout; and analyzing the attributes of said elements to determine their usage suitability.
 24. The method of claim 21 and wherein said locating and creating comprises at least one of: locating groups of said elements wherein said elements are highly overlapping and replacing said group with a virtual element according to a grouping criteria; locating groups of said elements of said elements according to hints of at least one of template, application, page or element level and replacing said group with a virtual element according to a grouping criteria; locating elements wherein said elements are text components that are overlaid over a specific background image and replacing said group with a virtual element according to a grouping criteria; determining a certainty score for the correctness of said locating groups of said elements wherein said elements are highly overlapping, locating groups of said elements of said elements according to hints of at least one of template, application, page or element level and locating elements wherein said elements are text components that are overlaid over a specific background image; and creating a hierarchy of super-nodes based on said elements and said virtual elements.
 25. The method of claim 21 and wherein said determining an order comprises at least one of: determining a sequence of said elements of said super-nodes according to a predefined order criteria; and analyzing at least one of the semantics, content, attributes, editing history and geometry of said elements of said super-nodes; determining a certainty score for the correctness of said determining a sequence of said elements of said super-nodes according to a predefined order criteria and said analyzing at least one of the semantics, content, attributes, editing history and geometry of said elements of said super-nodes; and integrating the sequence determined by determining a certainty score for the correctness of said determining a sequence of said elements of said super-nodes according to a predefined order criteria and said analyzing the at least one of semantics, content, attributes, editing history and geometry of said elements of said super-nodes and creating a merged modified order.
 26. The method of claim 21 and wherein said adjusting comprises at least one of: inserting automatically added and mobile related elements; and performing at least one of creation, modification and removal of dynamic layout anchors wherein said anchors are adjusted according to said target layout.
 27. The method of claim 25 and wherein said determining a sequence of said elements of said super-nodes according to a predefined order criteria comprises at least one of: sequencing said elements of said super-nodes according to at least one of rows and columns; sequencing said elements of said super-nodes according to at least one of rows and columns and tracking any row/column splitting and merging; and alternating horizontal and vertical slicing of said elements of said super-nodes and creating an internal tree of divisions and defining a sequence of display for said elements.
 28. The method of claim 21 and wherein said placing comprises at least one of: interpreting hints attached to said elements of said super-nodes; creating line breaks according to said hints created by said locating groups of said elements which should remain together and said creating a hierarchy of super-nodes based on the location of said elements and the content relationships of said elements; applying at least one of width and height adjustment to said elements of said super-nodes; and resizing decoration images.
 29. The method of claim 21 and wherein said determining a sequence of said elements of said super-nodes according to a predefined order criteria comprises at least one of: detecting a cluster partial order set wherein said elements of said super-nodes are closer in proximity compared to the regular spacing between said elements in said super-nodes; detecting a semantic relationship partial order set when there are specific combinations of said elements of said super-nodes of given types which are close together; detecting a partial order set when there are set patterns between said elements of said super-nodes; detecting a partial order set based on at least one of existing editing related grouping definitions, existing dynamic layout anchor information and the re-use of component templates for different element sets; and detecting a partial order set of said elements of said super-nodes based on information collected from previous editing sessions.
 30. The method of claim 26 and wherein said at least one of: automatically added and mobile-related elements include at least one of target device specific widgets, navigation menus, advertisements and promotional material.
 31. The method of claim 27 and also comprising detecting a partial order set when there are set patterns between said elements of said super-nodes and wherein said alternating horizontal and vertical slicing of said elements of said super-nodes and creating an internal tree of divisions and defining a sequence of display for said elements comprises determining the slicing direction of said elements of said super-nodes based on at least one of number of dividers, size of gaps found in the given projection direction, said detecting a partial order set when there are set patterns between said elements of said super-nodes and quality of alignment to axis projections in both directions.
 32. The method of claim 23 and wherein said filtering comprises: removing elements not suitable for said target layout display and hiding elements not suitable for said target layout display.
 33. The method of claim 23 and wherein said adapting comprises: modifying the size and width of said elements, uniting menu elements, updating content related adaptations; creating composite menus; and converting character based graphics.
 34. The method of claim 23 and wherein said adjusting comprises mapping font-size between said source layout and said target layout.
 35. The method of claim 23 and wherein said analyzing comprises: stitching said elements when said elements are image components into a single image; and distinguishing decoration images.
 36. The method of claim 20 and wherein said reconverting comprises: deleting a page from said target layout when said page is deleted from said source layout; adding a page to said target layout when said page is added to said source layout; deleting an element from said target layout when said element is deleted from said source layout; adding an element to said target layout when said element is added to said source layout; modifying an element from said target layout when said element is modified in said source layout; and handling modifications to said target layout wherein said modifications are independent of modifications to said source layout.
 37. The method of claim 36 and wherein said adding an element comprises: searching for at least one of the nearest predecessor element and parent element which are the closest to an added element to said source layout; and inserting said added element to said target layout according to the location of said at least one of the nearest predecessor element and parent element.
 38. The converter of claim 6 and wherein said node creator performs at least one of removing and merging containers according to semantic analysis.
 39. The method of claim 24 and wherein said creating a hierarchy of super-nodes comprises at least one of removing and merging containers according to semantic analysis.
 40. The converter of claim 19 and wherein said parent/predecessor searcher comprises a clusterer to cluster elements according to their proximity to said predecessor element and said parent element.
 41. The method of claim 37 and wherein said searching comprises clustering elements according to their proximity to said predecessor element and said parent element.
 42. The method of claim 20 wherein said method is performed recursively according to said source layout.
 43. The method of claim 20 and wherein said determining and creating employ hints provided by at least one of said elements and a pre-defined template of said elements.
 44. The converter of claim 18 and wherein said mobile handler performs at least one of closing gaps in a given element line and deleting an entire element line when said component deleter deletes an element from said target layout.
 45. The method of claim 36 and wherein said handling modifications to said target layout comprises at least one of closing gaps in a given element line and deleting an entire element line when said element is deleted from said source layout. 